mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-22 16:22:12 +00:00
Corrected setLevel()
This commit is contained in:
parent
b142664ef7
commit
33b103a520
5
twoot.py
5
twoot.py
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user