Skip to content

Commit

Permalink
Add more info to error log when writing ivr channel log fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Sep 20, 2024
1 parent a6faf6b commit d9d8b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/ivr/ivr.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func newIVRHandler(handler ivrHandlerFn, logType clogs.LogType) web.Handler {
clog.End()

if err := models.InsertChannelLogs(ctx, rt, []*models.ChannelLog{clog}); err != nil {
slog.Error("error writing ivr channel log", "error", err, "http_request", r)
slog.Error("error writing ivr channel log", "error", err, "elapsed", clog.Elapsed, "channel", ch.UUID())
}

return rerr
Expand Down

0 comments on commit d9d8b46

Please sign in to comment.