]> git.ipfire.org Git - thirdparty/patchwork.git/commit
settings: Don't configure logging for parsearchive
authorStephen Finucane <stephen@that.guru>
Fri, 21 Sep 2018 16:59:48 +0000 (17:59 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 24 Sep 2018 10:26:00 +0000 (11:26 +0100)
commitaa266a28c6a022ad6952fac8f36afff0c540dccf
tree5e2694cea70fad10fae3f11efa14db352f8da6df
parentab0c443691c4f97b945fbb0d39261e51f5a1d74a
settings: Don't configure logging for parsearchive

A recent change added additional ERROR level logs to the 'parsearchive'
tool. This highlighted an issue, whereby we had configured all modules
in 'patchwork.management.command' to email administrators on ERROR logs.
We clearly shouldn't be doing this for the 'parsearchive' command or for
anything other than 'parsemail', so fix this.

Along the way, we remove a now-unnecessary 'extra' argument to one of
the logging calls in 'parsearchive' and resolve a pep8 issue.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 133091da ("parsearchive: Fix logging")
Cc: Daniel Axtens <dja@axtens.net>
patchwork/management/commands/parsearchive.py
patchwork/parser.py
patchwork/settings/base.py