Skip to content

Commit

Permalink
Use log.With()
Browse files Browse the repository at this point in the history
  • Loading branch information
googollee committed Jul 29, 2024
1 parent 68c9a2a commit 44f7995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func logHandling(ctx Context) error {

slog := LogModule.Value(ctx)
if slog != nil {
ctx = ctx.WithParent(LogModule.With(ctx, slog.With("method", method, "path", path)))
ctx = ctx.WithParent(log.With(ctx, "method", method, "path", path))
}

INFO(ctx, "receive http")
Expand Down

0 comments on commit 44f7995

Please sign in to comment.