File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ func (b *clusterImplBalancer) UpdateClientConnState(s balancer.ClientConnState)
211
211
return nil
212
212
}
213
213
214
- b .logger .Infof ("Received update from resolver, balancer config: %+v" , pretty .ToJSON (s .BalancerConfig ))
214
+ if b .logger .V (2 ) {
215
+ b .logger .Infof ("Received update from resolver, balancer config: %s" , pretty .ToJSON (s .BalancerConfig ))
216
+ }
215
217
newConfig , ok := s .BalancerConfig .(* LBConfig )
216
218
if ! ok {
217
219
return fmt .Errorf ("unexpected balancer config with type: %T" , s .BalancerConfig )
Original file line number Diff line number Diff line change @@ -242,7 +242,9 @@ func (b *clusterResolverBalancer) updateChildConfig() {
242
242
b .logger .Warningf ("Failed to parse child policy config. This should never happen because the config was generated: %v" , err )
243
243
return
244
244
}
245
- b .logger .Infof ("Built child policy config: %v" , pretty .ToJSON (childCfg ))
245
+ if b .logger .V (2 ) {
246
+ b .logger .Infof ("Built child policy config: %s" , pretty .ToJSON (childCfg ))
247
+ }
246
248
247
249
endpoints := make ([]resolver.Endpoint , len (addrs ))
248
250
for i , a := range addrs {
You can’t perform that action at this time.
0 commit comments