Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
fix: fix rec.ContextLogger func
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent committed Dec 6, 2022
1 parent dbdd8a6 commit bfaa5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
func ContextLogger(ctx context.Context) *Logger {
l, ok := ctx.Value(key).(*Logger)
if !ok || l == nil {
defaultLogger.Error("rec: ContextLogger returns defaultLogger because ctx does not contain *rec.Logger")
defaultLogger.AddCallerSkip(1).Error("rec: ContextLogger returns defaultLogger because ctx does not contain *rec.Logger")
return defaultLogger
}

Expand Down

0 comments on commit bfaa5c3

Please sign in to comment.