Closed c-salmi closed 2 years ago
Because logging.basicConfig() is already called from within one of the imported packages, initializing the log_levels from this function doesn't work.
logging.basicConfig()
Fix: explicitly set the log_levels in a separate function like: logging.getLogger().setLevel(log_levels[args.log_level])
logging.getLogger().setLevel(log_levels[args.log_level])
Because
logging.basicConfig()
is already called from within one of the imported packages, initializing the log_levels from this function doesn't work.Fix: explicitly set the log_levels in a separate function like:
logging.getLogger().setLevel(log_levels[args.log_level])