Corrected setLevel()

This commit is contained in:
jeancf 2022-12-04 12:43:11 +01:00
parent b142664ef7
commit 33b103a520

View File

@ -601,7 +601,8 @@ def main(argv):
log_level = logging.CRITICAL log_level = logging.CRITICAL
case _: case _:
logging.error('Invalid log_level %s in config file. Using WARN.', str(TOML['options']['log_level'])) logging.error('Invalid log_level %s in config file. Using WARN.', str(TOML['options']['log_level']))
logging.setLevel(log_level) logger = logging.getLogger()
logger.setLevel(log_level)
logging.info('Running with the following configuration:') logging.info('Running with the following configuration:')
logging.info(' Config File : ' + str(args['f'])) logging.info(' Config File : ' + str(args['f']))