Skip to content
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

env.log_level("LOG_LEVEL") with LOG_LEVEL=info returns "logging.info" function #140

Closed
gnarvaja opened this issue Feb 28, 2020 · 0 comments

Comments

@gnarvaja
Copy link
Contributor

The current code of log_level handler, just does getattr(value, logging) to get the value, so if you put the log level in lowercase you don't get an error but instead the module funcion is returned.

I made a fix that applies .upper() to the value and also validates the module member getattr(logging, value) is int for extra validation.

PR #138

@sloria sloria closed this as completed Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants