GODT-2187: Handle unbuildable messages in event loop

This commit is contained in:
James Houlahan
2022-12-06 16:52:02 +01:00
parent bd6ae2ac2b
commit 75c88eaa55
4 changed files with 51 additions and 16 deletions

View File

@ -304,11 +304,11 @@ func syncMessages(
logrus.WithError(err).Error("Failed to add failed message ID")
}
if err := sentry.ReportMessageWithContext("Failed to sync message", reporter.Context{
if err := sentry.ReportMessageWithContext("Failed to build message (sync)", reporter.Context{
"messageID": res.messageID,
"error": res.err,
}); err != nil {
logrus.WithError(err).Error("Failed to report message sync error")
logrus.WithError(err).Error("Failed to report message build error")
}
// We could sync a placeholder message here, but for now we skip it entirely.