Skip to content

Commit

Permalink
Fix user notified incident history error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and julianbrost committed May 26, 2023
1 parent 5461bf7 commit 8410cac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/incident/incident.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,10 @@ func (i *Incident) notifyContacts(ev *event.Event, causedBy types.Int) error {

_, err := i.AddHistory(hr, false)
if err != nil {
i.logger.Errorln(err)
i.logger.Errorw(
"Failed to insert contact notified incident history", zap.String("contact", contact.String()),
zap.Error(err),
)
}

chConf := i.runtimeConfig.Channels[chType]
Expand Down

0 comments on commit 8410cac

Please sign in to comment.