mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
log SA report
This commit is contained in:
parent
ec4d879836
commit
b4d1b3950d
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue