xds: Log cluster_manager config update before applying config

It is confusing/harder to read the logs when the
activations/deactivations because of the config happen before the log
entry describing the new config.
This commit is contained in:
Eric Anderson 2025-03-05 13:27:48 -08:00
parent d82613a74c
commit f3f054a0a4
1 changed files with 3 additions and 3 deletions

View File

@ -81,6 +81,9 @@ class ClusterManagerLoadBalancer extends MultiChildLoadBalancer {
ClusterManagerConfig config = (ClusterManagerConfig) ClusterManagerConfig config = (ClusterManagerConfig)
resolvedAddresses.getLoadBalancingPolicyConfig(); resolvedAddresses.getLoadBalancingPolicyConfig();
logger.log(
XdsLogLevel.INFO,
"Received cluster_manager lb config: child names={0}", config.childPolicies.keySet());
Map<Object, ResolvedAddresses> childAddresses = new HashMap<>(); Map<Object, ResolvedAddresses> childAddresses = new HashMap<>();
// Reactivate children with config; deactivate children without config // Reactivate children with config; deactivate children without config
@ -108,9 +111,6 @@ class ClusterManagerLoadBalancer extends MultiChildLoadBalancer {
.build(); .build();
childAddresses.put(childPolicy.getKey(), addresses); childAddresses.put(childPolicy.getKey(), addresses);
} }
logger.log(
XdsLogLevel.INFO,
"Received cluster_manager lb config: child names={0}", config.childPolicies.keySet());
return childAddresses; return childAddresses;
} }