Skip to content

Commit

Permalink
log send errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyzli committed Jun 17, 2024
1 parent f8403da commit 84c5ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/channel_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (r *ChannelBasedReceiverRegistry) Register(name string, receiver sinks.Sink
err := receiver.Send(context.Background(), &ev)
if err != nil {
r.MetricsStore.SendErrors.Inc()
log.Debug().Err(err).Str("sink", name).Str("event", ev.Message).Msg("Cannot send event")
log.Error().Err(err).Str("sink", name).Str("event", ev.Message).Msg("Cannot send event")
}
case <-exitCh:
log.Info().Str("sink", name).Msg("Closing the sink")
Expand Down

0 comments on commit 84c5ced

Please sign in to comment.