Skip to content

Commit

Permalink
fix: remove invalid log fields in notLoggingContentMethods (zeromicro…
Browse files Browse the repository at this point in the history
  • Loading branch information
wubenqi authored and kevwan committed Jul 30, 2022
1 parent fdc9eb9 commit 8b36703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zrpc/internal/serverinterceptors/statinterceptor.go
Expand Up @@ -60,9 +60,9 @@ func logDuration(ctx context.Context, method string, req interface{}, duration t
_, ok = notLoggingContentMethods.Load(method)
if ok {
if duration > slowThreshold.Load() {
logger.Slowf("[RPC] slowcall - %s - %s - %s", addr, method)
logger.Slowf("[RPC] slowcall - %s - %s", addr, method)
} else {
logger.Infof("%s - %s - %s", addr, method)
logger.Infof("%s - %s", addr, method)
}
} else {
content, err := json.Marshal(req)
Expand Down

0 comments on commit 8b36703

Please sign in to comment.