chore: Also log the message received time when handling message creation event.

This commit is contained in:
Romain LE JEUNE 2023-12-19 11:12:46 +01:00 committed by Romain Le Jeune
parent 43df20c25d
commit 346988e604
1 changed files with 1 additions and 0 deletions

View File

@ -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())