Skip to content

Commit

Permalink
Parse logging environment variables with pre Python3.11 function (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
JHopeCollins authored Sep 25, 2024
1 parent bd9e2fe commit 3457a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gusto/core/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def capture_exceptions(exception_type, exception_value, traceback, logger=logger
logconsole_level = os.environ.get("GUSTO_CONSOLE_LOG_LEVEL", INFO)
log_level_list = [log_level, logfile_level, logconsole_level]
log_levels = [
logging.getLevelNamesMapping().get(x) if isinstance(x, str)
logging.getLevelName(x) if isinstance(x, str)
else x
for x in log_level_list
]
Expand Down

0 comments on commit 3457a5e

Please sign in to comment.