From: Stephen Finucane Date: Wed, 10 Oct 2018 10:20:21 +0000 (+0100) Subject: settings: Do configure logging for parsearchive (but differently) X-Git-Tag: v2.2.0-rc1~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e852d5ab1af3b13e5795bb6e021290221d09605;p=thirdparty%2Fpatchwork.git 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 --- 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',