From 366174dbfcdef77a104159d9d0a7cd9ef1624afb Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Tue, 2 Apr 2024 11:22:41 +0200 Subject: [PATCH] :mute: Mute logging during test runs in CI CI is showing irrelevant logs, making it harder to debug actual test failures. --- src/openforms/conf/ci.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/openforms/conf/ci.py b/src/openforms/conf/ci.py index ee1795f763..35b008ebcb 100644 --- a/src/openforms/conf/ci.py +++ b/src/openforms/conf/ci.py @@ -24,6 +24,7 @@ os.environ.setdefault("LOG_REQUESTS", "no") from .base import * # noqa isort:skip +from .utils import mute_logging # noqa isort:skip CACHES.update( { @@ -35,15 +36,7 @@ ) # shut up logging -LOGGING["loggers"].update( - { - "openforms.api.exception_handling": { - "handlers": ["console"], - "level": "CRITICAL", - "propagate": False, - }, - } -) +mute_logging(LOGGING) # don't spend time on password hashing in tests/user factories PASSWORD_HASHERS = ["django.contrib.auth.hashers.UnsaltedMD5PasswordHasher"]