From 7fa88166eeb299eb01889cc8d71149a0c042668c Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 20 Oct 2024 19:36:31 +0000 Subject: [PATCH] fixed log not being set --- shared/utils/setup_logging.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shared/utils/setup_logging.py b/shared/utils/setup_logging.py index 4241832..6e90d05 100644 --- a/shared/utils/setup_logging.py +++ b/shared/utils/setup_logging.py @@ -1,5 +1,4 @@ """Definition of setup_logging function.""" -from __future__ import annotations import logging import os @@ -17,7 +16,7 @@ def setup_logging() -> None: '%(message)s' ) datefmt = '%Y-%m-%d %H:%M:%S' - logging.basicConfig(format=fmt, datefmt=datefmt, level=level) + logging.basicConfig(format=fmt, datefmt=datefmt, level=level, force=True) # change levels for modules that spam the log logging.getLogger('pymongo').setLevel(logging.WARNING) logging.getLogger('urllib3').setLevel(logging.INFO)