]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
settings: Do configure logging for parsearchive (but differently)
authorStephen Finucane <stephen@that.guru>
Wed, 10 Oct 2018 10:20:21 +0000 (11:20 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 10 Oct 2018 10:20:21 +0000 (11:20 +0100)
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 <stephen@that.guru>
patchwork/settings/base.py

index c69947be5dd7133284ce0b49874277262d494eae..15644b40560432ba850f357b9b37cffa95fc84d3 100644 (file)
@@ -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',