Unify type of log_level in logging module #4622
Labels
Code Quality 💯
Improvements or issues to improve quality of codebase
good first issue 🔰
Good for newcomers
hacktoberfest
Help Wanted 🌐
Issues good for external contributors.
P3
Very minor bugs, or features we can hopefully add some day.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. What kind of performance improvements would you like to see with this new API?
The logging module currently has a handful of functions that take in a
log_level
argument that are ints in some functions and string in other functions. For example,_create_logger
inlogging/config.py
haslog_level
as an integer where asclass_logger.py
takes inlog_level
as a string. This isn't a terribly pressing issue, but we should try to decide on one type forlog_level
or handle both integers and strings elegantly.The text was updated successfully, but these errors were encountered: