-
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?
Do we want to enable these as well?
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 <[email protected]>
Signed-off-by: Gyuho Lee <[email protected]>
37478a6
to
4f71941
Compare
Signed-off-by: Gyuho Lee <[email protected]>
@xiang90 PTAL. Now only discards info level. |
lgtm |
Fix #8983.