unittest_for_shared_utils #55

Merged
brian merged 2 commits from unittest_for_shared_utils into main 2024-10-20 21:43:06 +02:00
Showing only changes of commit 7fa88166ee - Show all commits
+1 -2
View File
@@ -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)