mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 04:54:39 +03:00
when rejecting a message, add field "msgfrom" to the logging line
This commit is contained in:
@ -2193,7 +2193,7 @@ func (c *conn) deliver(ctx context.Context, recvHdrFor func(string) string, msgW
|
||||
}
|
||||
}
|
||||
|
||||
log.Info("incoming message rejected", mlog.Field("reason", a.reason))
|
||||
log.Info("incoming message rejected", mlog.Field("reason", a.reason), mlog.Field("msgfrom", msgFrom))
|
||||
metricDelivery.WithLabelValues("reject", a.reason).Inc()
|
||||
c.setSlow(true)
|
||||
addError(rcptAcc, a.code, a.secode, a.userError, a.errmsg)
|
||||
|
Reference in New Issue
Block a user