diff --git a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt index c72de3d4b..d1f1d6318 100644 --- a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt +++ b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt @@ -283,9 +283,10 @@ class EnvoySnapshotFactory( endpointsFactory.filterEndpoints(endpoints, routeSpec.settings.routingPolicy).let { endpointsFactory.assignLocalityWeights(routeSpec, it).also { la -> if (la.endpointsList.any { el -> el.lbEndpointsList.isEmpty() }) { + @Suppress() logger.warn( "ClusterLoadAssignment for ${routeSpec.clusterName} has empty lbEndpoints, " + - "original clusterLoadAssignment: ${endpoints.toString()}" + "original clusterLoadAssignment: $endpoints" ) } }