config: fix console logged message format
This commit is contained in:
parent
9a89638e54
commit
ef94c6969f
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue