-
Notifications
You must be signed in to change notification settings - Fork 402
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
fix: regression 104 #105
fix: regression 104 #105
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #105 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 497 499 +2
Branches 45 46 +1
=========================================
+ Hits 497 499 +2
Continue to review full report at Codecov.
|
""" Returns preferred log level set by the customer in upper case """ | ||
if isinstance(level, int): | ||
return level | ||
|
||
log_level: str = level or os.getenv("LOG_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.
The docstring on line 47 above declares the LOG_LEVEL environment variable as capable of accepting an integer. That probably needs to be handled here as well.
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.
handling that in another PR before publishing it, as the test didn't go through
Signed-off-by: heitorlessa <[email protected]>
Issue #, if available: #105 104
Description of changes:
Corrects regression where
Logger
constructor wasn't takingint
as a level.Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.