From c16d50dd0cefe267480ffb096bdefa5f320adf9e Mon Sep 17 00:00:00 2001 From: grahamalama Date: Wed, 26 Jul 2023 08:47:53 -0400 Subject: [PATCH] Send StreamHandler loggers to stdout (#772) --- ctms/log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ctms/log.py b/ctms/log.py index 4be27fa7..c4f14e3c 100644 --- a/ctms/log.py +++ b/ctms/log.py @@ -1,7 +1,7 @@ """Logging configuration""" - import logging import logging.config +import sys from typing import Any, Dict, List, Optional import structlog @@ -48,6 +48,7 @@ def configure_logging( "handlers": { "humans": { "class": "logging.StreamHandler", + "stream": sys.stdout, "formatter": "dev_console", "level": logging.DEBUG, }, @@ -56,6 +57,7 @@ def configure_logging( }, "mozlog": { "class": "logging.StreamHandler", + "stream": sys.stdout, "formatter": "mozlog_json", "level": logging.DEBUG, },