From d1a1e601c27ce40b30f04c9801dc3f27f0d4bcb8 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Mon, 6 Sep 2021 14:10:09 +0200 Subject: [PATCH] Log: 404 jsou jen info --- mamweb/settings_common.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mamweb/settings_common.py b/mamweb/settings_common.py index bdc51225..89204c11 100644 --- a/mamweb/settings_common.py +++ b/mamweb/settings_common.py @@ -241,12 +241,24 @@ LOGGING = { }, }, + 'filters': { + 'Http404AsInfo': { + '()': 'various.log_filters.Http404AsInfoFilter', + }, + }, + 'loggers': { 'django': { 'handlers': ['console'], 'level': 'DEBUG', }, + 'django.request': { + 'handlers': ['console'], + 'level': 'DEBUG', + 'filters': ['Http404AsInfo'], + }, + 'seminar.prihlaska.form':{ 'handlers': ['console','registration_logfile'], 'level': 'INFO'