fix: remove invalid log fields in notLoggingContentMethods (#2187)
This commit is contained in:
@@ -60,9 +60,9 @@ func logDuration(ctx context.Context, method string, req interface{}, duration t
|
|||||||
_, ok = notLoggingContentMethods.Load(method)
|
_, ok = notLoggingContentMethods.Load(method)
|
||||||
if ok {
|
if ok {
|
||||||
if duration > slowThreshold.Load() {
|
if duration > slowThreshold.Load() {
|
||||||
logger.Slowf("[RPC] slowcall - %s - %s - %s", addr, method)
|
logger.Slowf("[RPC] slowcall - %s - %s", addr, method)
|
||||||
} else {
|
} else {
|
||||||
logger.Infof("%s - %s - %s", addr, method)
|
logger.Infof("%s - %s", addr, method)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
content, err := json.Marshal(req)
|
content, err := json.Marshal(req)
|
||||||
|
|||||||
Reference in New Issue
Block a user