Skip to content

Commit

Permalink
smtp: use info level to log received message
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrode committed Jul 12, 2024
1 parent 26ff1af commit 60ccdb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/smtp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 60ccdb2

Please sign in to comment.