Skip to content

Commit

Permalink
Logs for vte
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Dec 12, 2023
1 parent c4a0609 commit 4cf5537
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,12 @@ class EnvoySnapshotFactory(
val trafficSplitting = properties.loadBalancing.trafficSplitting
val weights = trafficSplitting.serviceByWeightsProperties[serviceName]
val enabledForDependency = globalSnapshot.endpoints[clusterName]?.endpointsList
?.any { e -> trafficSplitting.zoneName == e.locality.zone }
?.any { e -> trafficSplitting.zoneName == e.locality.zone && e.lbEndpointsCount > 0 }
?: false
logger.debug(
"Building route spec, weights: $weights, " +
"serviceName: $serviceName, outgoing dependency clusterName: $clusterName, enabled: $enabledForDependency"
)
return if (weights != null && enabledForDependency) {
logger.debug(
"Building traffic splitting route spec, weights: $weights, " +
Expand Down

0 comments on commit 4cf5537

Please sign in to comment.