From 5e852d5ab1af3b13e5795bb6e021290221d09605 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 10 Oct 2018 11:20:21 +0100 Subject: [PATCH] settings: Do configure logging for parsearchive (but differently) In commit aa266a28, we removed the logging configuration for the 'parsearchive' tool because it was using the same configuration as 'parsemail' and could send an email to administrators for ERROR logs. While we shouldn't be doing that, we should be configuring _some_ kind of logging. Signed-off-by: Stephen Finucane --- patchwork/settings/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/patchwork/settings/base.py b/patchwork/settings/base.py index c69947be..15644b40 100644 --- a/patchwork/settings/base.py +++ b/patchwork/settings/base.py @@ -185,6 +185,11 @@ LOGGING = { 'level': 'WARNING', 'propagate': False, }, + 'patchwork.management.commands.parsearchive': { + 'handlers': ['console'], + 'level': 'WARNING', + 'propagate': True, + }, 'patchwork.management.commands.parsemail': { 'handlers': ['console', 'mail_admins'], 'level': 'WARNING', -- 2.47.3