Skip to content

Commit

Permalink
🔇 Mute logging during test runs in CI
Browse files Browse the repository at this point in the history
CI is showing irrelevant logs, making it harder to debug actual
test failures.
  • Loading branch information
sergei-maertens committed Apr 2, 2024
1 parent bdf53af commit 59270bf
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/openforms/conf/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
os.environ.setdefault("LOG_REQUESTS", "no")

from .base import * # noqa isort:skip
from .utils import mute_logging

CACHES.update(
{
Expand All @@ -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"]
Expand Down

0 comments on commit 59270bf

Please sign in to comment.