no need to raise error if email processing takes more than 60s

This commit is contained in:
Son 2022-01-17 14:42:27 +01:00
parent 94ecdb0515
commit efdb0a60d3

View file

@ -2432,13 +2432,7 @@ class MailHandler:
ret = handle(envelope, msg)
elapsed = time.time() - start
# use error log if taking more than 1 minute
if elapsed > 60:
log_f = LOG.e
else:
log_f = LOG.i
log_f(
LOG.i(
"Finish mail_from %s, rcpt_tos %s, takes %s seconds <<===",
envelope.mail_from,
envelope.rcpt_tos,