Skip to content

Commit

Permalink
Merge pull request #4085 from open-formulieren/chore/mute-logging-in-ci
Browse files Browse the repository at this point in the history
🔇 Mute logging during test runs in CI
  • Loading branch information
sergei-maertens authored Apr 2, 2024
2 parents dba0ffe + 366174d commit 0d998d9
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 # noqa isort:skip

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 0d998d9

Please sign in to comment.