Skip to content

Commit

Permalink
fix: decorate entry for checked logger
Browse files Browse the repository at this point in the history
  • Loading branch information
damianopetrungaro committed May 20, 2022
1 parent eebbbd1 commit a2da154
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stdlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,9 @@ func (l StdLogger) check(ctx context.Context, lvl Level, msg Message) (CheckedLo
}
}

for _, d := range l.Decorators {
e = d.Decorate(e)
}

return StdCheckedLogger{Writer: l.Writer, Entry: e}, true
}

0 comments on commit a2da154

Please sign in to comment.