-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: discard only info when --debug=false, add "--debug" grpc-proxy start #8994
Conversation
etcdmain/grpc_proxy.go
Outdated
capnslog.SetGlobalLogLevel(capnslog.DEBUG) | ||
grpc.EnableTracing = true | ||
} else { | ||
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, we should still return gRPC loggings whose level >= Error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about NewLoggerV2WithVerbosity
to stderr with verbosity 2?
https://github.com/grpc/grpc-go/blob/ec61302c8eeed1f9705bc51e6606220ce21f4a60/transport/log.go#L26
Do we want to enable these as well?
https://github.com/coreos/etcd/blob/a7f1fbe00ec216fcb3a1919397a103b41dca8413/embed/config.go#L264
https://github.com/coreos/etcd/blob/a7f1fbe00ec216fcb3a1919397a103b41dca8413/clientv3/logger.go#L40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
37478a6
to
4f71941
Compare
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
@xiang90 PTAL. Now only discards info level. |
lgtm |
Fix #8983.