From d7e18848d1e4a58d6dd01b36da751942a5b18abd Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:54:15 +0100 Subject: [PATCH] bug fix --- src/core/logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/logging.py b/src/core/logging.py index 90b0192..ced1460 100644 --- a/src/core/logging.py +++ b/src/core/logging.py @@ -26,6 +26,7 @@ stream_handler.setFormatter(formatter) handlers = [file_handler if settings.ENV != "PRD" else None, stream_handler] +handlers = [h for h in handlers if h is not None] logging.basicConfig(level=logging.DEBUG, handlers=handlers)