From 60ccdb23ea449cbce072a1ae056f10ca5bf5936e Mon Sep 17 00:00:00 2001 From: Martin Rode <martin.rode@programmfabrik.de> Date: Fri, 12 Jul 2024 13:20:25 +0200 Subject: [PATCH] smtp: use info level to log received message --- internal/smtp/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/smtp/server.go b/internal/smtp/server.go index a169a86..99766a6 100644 --- a/internal/smtp/server.go +++ b/internal/smtp/server.go @@ -149,7 +149,7 @@ func (s *session) Data(r io.Reader) error { logrus.Error("SMTP:", errWrapped) // this is logged in our server return errWrapped // this is returned via SMTP } - logrus.Debugf("SMTP: Message from %s to %v at %v", s.from, s.rcptTo, now.Format(time.DateTime)) + logrus.Infof("smtp: From: %q To: %v", s.from, s.rcptTo) s.server.receivedMessages = append(s.server.receivedMessages, msg)