log SA report

This commit is contained in:
Son NK 2020-11-12 12:11:39 +01:00
parent ec4d879836
commit b4d1b3950d
1 changed files with 1 additions and 0 deletions

View File

@ -1765,6 +1765,7 @@ def get_spam_score(message: Message) -> float:
try:
# wait for at max 300s which is the default spamd timeout-child
sa = SpamAssassin(sa_input, host=SPAMASSASSIN_HOST, timeout=300)
LOG.d("SA report %s", sa.get_report_json())
return sa.get_score()
except Exception:
LOG.exception("SpamAssassin exception")