-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Logging improvements & fixes #187
Logging improvements & fixes #187
Conversation
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 don't see any tests related to logging. Changes LGTM.
broker/settings.py
Outdated
Validator("LOGGING.LEVEL", is_in=["error", "warning", "info", "debug", "trace", "silent"], default="info"), | ||
Validator("LOGGING.FILE_LEVEL", is_in=["error", "warning", "info", "debug", "trace", "silent"], default="debug"), | ||
Validator( | ||
"LOGGING.LEVEL", |
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.
Is this the new version?
"LOGGING.LEVEL", | |
"LOGGING.CONSOLE_LEVEL", |
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.
🤦♂️ oh yeah, I forgot that one.
Fixed by f4e3aef.
* formatted logging related code using black * removed deprecated logzero.setup_default_logger * broken down into logzero.formatter, logzero.loglevel and logzero.logfile * fixed broken logging in ipython console with %autoreload 2 turned on * _old_factory is None by default and is set to `broker_record_factory` only if _old_factory was not set to `broker_record_factory` yet.
a14db34
to
f4e3aef
Compare
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.
ACK, thanks!
some test results:
|
broker_record_factory
only if _old_factory was not set tobroker_record_factory
yet.