log msgfrom for incoming delivered messages

This commit is contained in:
Mechiel Lukkien 2023-03-12 13:22:51 +01:00
parent 10daf3cb81
commit 132f08913b
No known key found for this signature in database

View file

@ -2401,7 +2401,7 @@ func (c *conn) deliver(ctx context.Context, recvHdrFor func(string) string, msgW
return
}
metricDelivery.WithLabelValues("delivered", a.reason).Inc()
log.Info("incoming message delivered", mlog.Field("reason", a.reason))
log.Info("incoming message delivered", mlog.Field("reason", a.reason), mlog.Field("msgfrom", msgFrom))
conf, _ := acc.Conf()
if conf.RejectsMailbox != "" && messageID != "" {