Disable django.security.DisallowedHost from logging
@@ -390,6 +390,9 @@ class CommunityBaseSettings(Settings):
'filename': os.path.join(LOGS_ROOT, 'debug.log'),
'formatter': 'default',
},
+ 'null': {
+ 'class': 'logging.NullHandler',
+ },
},
'loggers': {
'': { # root logger
@@ -403,5 +406,9 @@ class CommunityBaseSettings(Settings):
# Don't double log at the root logger for these.
'propagate': False,
},
+ 'django.security.DisallowedHost': {
+ 'handlers': ['null'],
+ 'propagate': False,
+ },
},
}
