qmemman: fix setting logger for foreground mode

This commit is contained in:
Marek Marczykowski-Górecki 2021-02-26 01:43:03 +01:00
parent 740a56781e
commit 2c83c7b16c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -247,7 +247,7 @@ def main():
if args.foreground: if args.foreground:
ha_stderr = logging.StreamHandler(sys.stderr) ha_stderr = logging.StreamHandler(sys.stderr)
ha_file.setFormatter( ha_stderr.setFormatter(
logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s')) logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s'))
logging.root.addHandler(ha_stderr) logging.root.addHandler(ha_stderr)