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

master
benqi 2 years ago committed by GitHub
parent 9b334b5428
commit 5d7919a9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save