Corrected setLevel()

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

View File

@ -601,8 +601,9 @@ def main(argv):
log_level = logging.CRITICAL
case _:
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(' Config File : ' + str(args['f']))
logging.info(' twitter_account : ' + TOML['config']['twitter_account'])