Skip to content

Commit

Permalink
change grpc response logger to debug level instead of error (#648)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Jun 15, 2022
1 parent 0ed308e commit ce8d2fb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ func SetupGRPCLogging() (*zap.Logger, []grpc_zap.Option) {
requestID = zap.String("requestID", val[0])
}
}
ctxzap.Extract(ctx).Check(level, msg).Write(
zap.Error(err),
zap.String("grpc.code", code.String()),
requestID,
duration,
)
ctxzap.Extract(ctx).Debug(msg, zap.Error(err), zap.String("grpc.code", code.String()), requestID, duration)
}))
return Logger.Desugar(), options
}

0 comments on commit ce8d2fb

Please sign in to comment.