Skip to content

Commit

Permalink
Remove useless debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kpetremann committed Jul 3, 2022
1 parent 50821cd commit 607b677
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,7 @@ func ParseEvent(message map[string]interface{}, eventChan chan SaltEvent) {
byteResult := []byte(lines[1])

if err := msgpack.Unmarshal(byteResult, &event.Data); err != nil {
var debug map[string]interface{}
msgpack.Unmarshal(byteResult, &debug)
log.Trace().Interface("raw event", debug).Msg("failed to parse event")

log.Debug().Str("error", err.Error()).Interface("debug", debug).Msg("decoding_failure")
log.Warn().Str("error", err.Error()).Str("tag", tag).Msg("decoding_failure")

return
}

Expand Down

0 comments on commit 607b677

Please sign in to comment.