summaryrefslogtreecommitdiff
path: root/patchwork/parser.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-09-19 19:50:55 +0100
committerStephen Finucane <stephen@that.guru>2018-09-20 22:06:14 +0100
commit133091da0a527ef8fe89aea38c4855973b48d5f1 (patch)
treebaa311c3c94a5b7f97414b1714a1ed767df98ec3 /patchwork/parser.py
parentb832aa43a8e29e52359dd51c17f77d09dae1fec4 (diff)
downloadpatchwork-133091da0a527ef8fe89aea38c4855973b48d5f1.tar
patchwork-133091da0a527ef8fe89aea38c4855973b48d5f1.tar.gz
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>
Diffstat (limited to 'patchwork/parser.py')
-rw-r--r--patchwork/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/parser.py b/patchwork/parser.py
index 4ede825..a61669f 100644
--- a/patchwork/parser.py
+++ b/patchwork/parser.py
@@ -950,7 +950,7 @@ def parse_mail(mail, list_id=None):
hint = clean_header(mail.get('X-Patchwork-Hint', ''))
if hint and hint.lower() == 'ignore':
- logger.debug("Ignoring email due to 'ignore' hint")
+ logger.info("Ignoring email due to 'ignore' hint")
return
project = find_project(mail, list_id)