Skip to content

Commit

Permalink
chore: Also log the message received time when handling message creat…
Browse files Browse the repository at this point in the history
…ion event.
  • Loading branch information
rlejeune74 committed Jan 2, 2024
1 parent 43df20c commit 346988e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/services/imapservice/service_message_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func onMessageCreated(
s.log.WithFields(logrus.Fields{
"messageID": message.ID,
"subject": logging.Sensitive(message.Subject),
"date": message.Time,
}).Info("Handling message created event")

full, err := s.client.GetFullMessage(ctx, message.ID, usertypes.NewProtonAPIScheduler(s.panicHandler), proton.NewDefaultAttachmentAllocator())
Expand Down

0 comments on commit 346988e

Please sign in to comment.