qmemman: fix setting logger for foreground mode
This commit is contained in:
parent
740a56781e
commit
2c83c7b16c
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user