Skip to content

Commit 8410cac

Browse files
yhabteabjulianbrost
authored andcommitted
Fix user notified incident history error logging
1 parent 5461bf7 commit 8410cac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/incident/incident.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,10 @@ func (i *Incident) notifyContacts(ev *event.Event, causedBy types.Int) error {
453453

454454
_, err := i.AddHistory(hr, false)
455455
if err != nil {
456-
i.logger.Errorln(err)
456+
i.logger.Errorw(
457+
"Failed to insert contact notified incident history", zap.String("contact", contact.String()),
458+
zap.Error(err),
459+
)
457460
}
458461

459462
chConf := i.runtimeConfig.Channels[chType]

0 commit comments

Comments
 (0)