-
Notifications
You must be signed in to change notification settings - Fork 46
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
Prevent function crash when setting unknown log level. #418
Conversation
a5077e5
to
4e5d3e5
Compare
85e5f50
to
b9e7f05
Compare
b9e7f05
to
16d2bde
Compare
|
||
from datadog_lambda.logger import initialize_logging | ||
|
||
_test_initialize_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.
great parameterizing!
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.
in python, it's spelled parametrizing
, whoever wrote it forgot the second e
😆
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 wonder which one is the english version and which is the american one lol
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.
According to wikipedia I guess both spells are correct? And that they're all british? https://en.wiktionary.org/wiki/parametrize
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.
LGTM!
What does this PR do?
Prevents function crash when setting
DD_LOG_LEVEL
to an unknown value. Also increases the number of available default log levels.Motivation
#417
Testing Guidelines
Additional Notes
Types of Changes
Check all that apply