-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce debug noise for issue #336 #369
base: main
Are you sure you want to change the base?
Conversation
schema/check_generated_data.py
Outdated
@@ -15,20 +15,20 @@ | |||
import schema_validator | |||
from schema_files import ALL_TEST_TYPES | |||
|
|||
logger = logging.Logger("Checking Test Data vs. Schemas LOGGER") | |||
logger.setLevel(logging.INFO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: often these libraries have a way to set the logging level from an environment variable or from the CLI, so that you can do something like DEBUG=* ./genData
or ./genData -vv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's possible. I'll take a look.
Also, I've removed lots of excessive logging in the latest commits.
One more thing: when executing in parallel, the individual threads cannot have a logger in their objects because a logger "cannot be pickled". That's a small complication / limit to logging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think don't pickle the logger; just make a new one for each thread
This removes excessive debug output from conformance test logs.