From 4ad23920acf264a915790fec04610690041d73d1 Mon Sep 17 00:00:00 2001 From: David Read Date: Mon, 24 Sep 2018 15:07:10 +0100 Subject: [PATCH] Stop the login page spewing reams of unnecssary logs, as per https://github.com/encode/django-rest-framework/issues/3736 --- control_panel_api/settings/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/control_panel_api/settings/base.py b/control_panel_api/settings/base.py index ba7ff17f1..4d8ecf67a 100644 --- a/control_panel_api/settings/base.py +++ b/control_panel_api/settings/base.py @@ -202,6 +202,12 @@ def is_enabled(value): 'handlers': ['console'], 'level': os.environ.get('LOG_LEVEL', 'DEBUG'), }, + 'django.template': { + # Get rid of noisy debug messages + 'handlers': ['console'], + 'level': os.environ.get('LOG_LEVEL', 'INFO'), + 'propagate': False, + }, 'django': { 'handlers': ['console'], 'level': os.environ.get('LOG_LEVEL', 'DEBUG'),