Skip to content

Commit

Permalink
🧹 move slack retry messages to debug (#3132)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Jan 26, 2024
1 parent a62e09b commit 5b2723b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions providers/slack/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,8 @@ type zeroLogAdapter struct{}

func (l *zeroLogAdapter) Msg(msg string, keysAndValues ...interface{}) {
var e *zerolog.Event
if msg == "performing request" {
e = log.Debug()
} else {
e = log.Info()
}
// retry messages should only go to debug
e = log.Debug()
for i := 0; i < len(keysAndValues); i += 2 {
e = e.Interface(keysAndValues[i].(string), keysAndValues[i+1])
}
Expand Down

0 comments on commit 5b2723b

Please sign in to comment.