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>
master
chowyu12 2 years ago committed by GitHub
parent b21162d638
commit c92a2d1b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save