aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.py b/common.py
index 88a0f4d..e1c13ab 100644
--- a/common.py
+++ b/common.py
@@ -32,7 +32,7 @@ def init_logger(app=__file__, level=logging.WARNING):
log = logging.getLogger()
log.setLevel(level)
- if os.getenv('SYSTEMD_EXEC_PID', None) is None:
+ if os.getenv('SYSTEMD_EXEC_PID', None) is None or os.getenv('JOURNAL_STREAM', None) is None:
ch = logging.StreamHandler()
else:
# started in systemd, use journald for filtering incl. coloring