fix: remove invalid log fields in notLoggingContentMethods (#2187)

This commit is contained in:
benqi
2022-07-24 22:18:04 +08:00
committed by GitHub
parent 9b334b5428
commit 5d7919a9f5

View File

@@ -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)