From 0ebf7e6ce133c1cde2e07089c1c3f6100982b65d Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Sat, 15 Jun 2024 13:00:28 +0200 Subject: [PATCH] updated logging formatting --- shared/utils/setup_logging.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/utils/setup_logging.py b/shared/utils/setup_logging.py index aa4ca14..4c70810 100644 --- a/shared/utils/setup_logging.py +++ b/shared/utils/setup_logging.py @@ -12,10 +12,12 @@ def setup_logging() -> None: fmt = ( '%(asctime)s | ' '%(levelname)s | ' - '%(filename)s | ' + '%(name)s | ' '%(funcName)s | ' '%(message)s' ) datefmt = '%Y-%m-%d %H:%M:%S' logging.basicConfig(format=fmt, datefmt=datefmt, level=level) + # change levels for modules that spam the log + logging.getLogger('pymongo').setLevel(logging.WARNING) logging.debug('finished')