From 2c83c7b16c75931dd9f77e1806c5e6c266a27e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 26 Feb 2021 01:43:03 +0100 Subject: [PATCH] qmemman: fix setting logger for foreground mode --- qubes/tools/qmemmand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/tools/qmemmand.py b/qubes/tools/qmemmand.py index 55666558..5a350fcf 100644 --- a/qubes/tools/qmemmand.py +++ b/qubes/tools/qmemmand.py @@ -247,7 +247,7 @@ def main(): if args.foreground: ha_stderr = logging.StreamHandler(sys.stderr) - ha_file.setFormatter( + ha_stderr.setFormatter( logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s')) logging.root.addHandler(ha_stderr)