feat: remove info log when disable log (#2525)
* add go-grpc_opt and go_opt for grpc new command * feat: remove log when disable log Co-authored-by: zhouyy <zhouyy@ickey.cn>
This commit is contained in:
@@ -61,8 +61,6 @@ func logDuration(ctx context.Context, method string, req interface{}, duration t
|
||||
if ok {
|
||||
if duration > slowThreshold.Load() {
|
||||
logger.Slowf("[RPC] slowcall - %s - %s", addr, method)
|
||||
} else {
|
||||
logger.Infof("%s - %s", addr, method)
|
||||
}
|
||||
} else {
|
||||
content, err := json.Marshal(req)
|
||||
|
||||
Reference in New Issue
Block a user