Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
debugJSON logs debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno authored and Mario Manno committed Aug 13, 2020
1 parent ca664e0 commit bc38d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ctxlog/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ func (ev Event) debugJSON(ctx context.Context, objectInfo interface{}) {
// treat JSON data as a string map and extract message
var result map[string]string
if err := json.Unmarshal([]byte(jsonData), &result); err != nil {
log := ExtractLoggerWithOptions(ctx, zap.AddCallerSkip(1))
log.Debug(err)
return
}

Expand Down

0 comments on commit bc38d82

Please sign in to comment.