]> 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, 17 Jun 2019 14:39:34 +0000 (15:39 +0100)
commit92ccdeb85118c59d1c0a3481aee89a9e455bcca4
treed209c21cf94db24263748881c891bdebe05c7801
parent19aad6096a13603c088461dcc7cf534289b8479a
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>
(cherry picked from commit aa266a28c6a022ad6952fac8f36afff0c540dccf)
patchwork/management/commands/parsearchive.py
patchwork/parser.py
patchwork/settings/base.py