Skip to content
Snippets Groups Projects
Commit 20bbc901 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '517-allowed_hosts-violations-are-too-loud' into 'master'

Resolve "ALLOWED_HOSTS violations are too loud"

Closes #517

See merge request !731
parents 15b35634 15f71d3e
No related branches found
No related tags found
1 merge request!731Resolve "ALLOWED_HOSTS violations are too loud"
Pipeline #36125 passed
Pipeline: AlekSIS

#36130

    ......@@ -15,6 +15,11 @@ Added
    * OpenID connect scope and accompanying claim `groups`
    * Support config files in JSON format
    Changed
    ~~~~~~~
    * Do not log or e-mail ALLOWED_HOSTS violations
    Fixed
    ~~~~~
    ......
    ......@@ -781,11 +781,21 @@ BLEACH_STRIP_COMMENTS = True
    LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "handlers": {"console": {"class": "logging.StreamHandler", "formatter": "verbose"},},
    "handlers": {
    "console": {"class": "logging.StreamHandler", "formatter": "verbose"},
    "null": {"class": "logging.NullHandler"},
    },
    "formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s: %(message)s"}},
    "root": {"handlers": ["console"], "level": _settings.get("logging.level", "WARNING"),},
    "loggers": {},
    }
    if not _settings.get("logging.disallowed_host", False):
    LOGGING["loggers"]["django.security.DisallowedHost"] = {
    "handlers": ["null"],
    "propagate": False,
    }
    # Rules and permissions
    GUARDIAN_RAISE_403 = True
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment