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
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