From 22dea62084768167d699aff6da59b6257f40fab9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 17 Sep 2020 21:16:31 +0200 Subject: [PATCH] root: fix startup log not showing in docker --- passbook/root/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passbook/root/settings.py b/passbook/root/settings.py index fa48db253..aeef6e9c3 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/2.1/ref/settings/ import importlib import os +import sys from json import dumps import structlog @@ -35,7 +36,7 @@ def j_print(event: str, log_level: str = "info", **kwargs): "logger": __name__, } data.update(**kwargs) - print(dumps(data)) + print(dumps(data), file=sys.stderr) LOGGER = structlog.get_logger()