The slacklogrus.go Levels() func is returning logrus.AllLevels when a WithLevel value was set. The func condition should be:
// Levels sent to slack
func (h *Hook) Levels() []logrus.Level {
if h.WithLevels == nil {
return logrus.AllLevels
}
return h.WithLevels
}
The slacklogrus.go Levels() func is returning logrus.AllLevels when a WithLevel value was set. The func condition should be: // Levels sent to slack func (h *Hook) Levels() []logrus.Level { if h.WithLevels == nil { return logrus.AllLevels } return h.WithLevels }