config: fix console logged message format

This commit is contained in:
Benjamin Renard 2022-02-24 12:33:24 +01:00
parent 9a89638e54
commit ef94c6969f

View file

@ -815,6 +815,8 @@ class Config: # pylint: disable=too-many-instance-attributes
if options.console: if options.console:
console_handler = logging.StreamHandler(sys.stdout) console_handler = logging.StreamHandler(sys.stdout)
console_formater = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
console_handler.setFormatter(console_formater)
logging.getLogger().addHandler(console_handler) logging.getLogger().addHandler(console_handler)
if execute_callback: if execute_callback: