Skip to content

Commit

Permalink
use child logger instead of root logger
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluong committed Dec 19, 2023
1 parent 3104450 commit da8fcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/route/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (r *SimpleRouter) Route(

for _, resp := range jsonRPCResponse.GetSubResponses() {
if resp.Error != nil {
zap.L().Warn("Encountered error in upstream JSONRPC response.",
r.logger.Warn("Encountered error in upstream JSONRPC response.",
zap.Any("request", requestBody), zap.Any("error", resp.Error),
zap.String("client", util.GetClientFromContext(ctx)), zap.String("upstreamID", upstreamID))

Expand Down

0 comments on commit da8fcaa

Please sign in to comment.