add warning log

This commit is contained in:
Son NK 2020-07-23 11:32:11 +02:00
parent 7a22b58f19
commit 38a6bcc461

View file

@ -498,6 +498,7 @@ def get_spam_from_header(spam_status_header, max_score=None) -> (bool, str):
) )
score = float(score_section[len("score=") :]) score = float(score_section[len("score=") :])
if score >= max_score: if score >= max_score:
LOG.warning("Spam score %s exceeds %s", score, max_score)
return True, spam_status_header return True, spam_status_header
return spamassassin_answer.lower() == "yes", spam_status_header return spamassassin_answer.lower() == "yes", spam_status_header