]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsearchive: Fix logging
authorStephen Finucane <stephen@that.guru>
Wed, 19 Sep 2018 18:50:55 +0000 (19:50 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 20 Sep 2018 21:06:14 +0000 (22:06 +0100)
commit133091da0a527ef8fe89aea38c4855973b48d5f1
treebaa311c3c94a5b7f97414b1714a1ed767df98ec3
parentb832aa43a8e29e52359dd51c17f77d09dae1fec4
parsearchive: Fix logging

We should use a counter normally, avoid using the counter and emit logs
when more detailed output is requested, and emit nothing when no output
is requested.

In addition, the default logging level for the parser module is set to
'WARNING' to make it less chatty.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/management/commands/parsearchive.py
patchwork/parser.py
patchwork/settings/base.py