balancer: reduce chattiness (#1608)
Remove some log messages from balancer_conn_wrappers and balancer_v1_wrapper which seem to be indented for debugging (one of them was even logging a pointer address). They can produce a lot of log messages which don't add value in a normal scenario.
This commit is contained in:
committed by
Menghan Li
parent
c5f391bd6c
commit
33ee217d11
@ -97,7 +97,6 @@ type balancerWrapper struct {
|
||||
// connections accordingly.
|
||||
func (bw *balancerWrapper) lbWatcher() {
|
||||
<-bw.startCh
|
||||
grpclog.Infof("balancerWrapper: is pickfirst: %v\n", bw.pickfirst)
|
||||
notifyCh := bw.balancer.Notify()
|
||||
if notifyCh == nil {
|
||||
// There's no resolver in the balancer. Connect directly.
|
||||
@ -230,7 +229,6 @@ func (bw *balancerWrapper) lbWatcher() {
|
||||
}
|
||||
|
||||
func (bw *balancerWrapper) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) {
|
||||
grpclog.Infof("balancerWrapper: handle subconn state change: %p, %v", sc, s)
|
||||
bw.mu.Lock()
|
||||
defer bw.mu.Unlock()
|
||||
scSt, ok := bw.connSt[sc]
|
||||
|
||||
Reference in New Issue
Block a user