root: fix startup log not showing in docker

This commit is contained in:
Jens Langhammer 2020-09-17 21:16:31 +02:00
parent 5ff1dd8426
commit 22dea62084
1 changed files with 2 additions and 1 deletions

View File

@ -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()