Skip to content

Commit

Permalink
Added logs #292
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Sep 15, 2023
1 parent 503fde5 commit 2b62bc7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ class EnvoyClustersFactory(

private fun getDependencySettings(dependency: ServiceDependency?, group: Group): DependencySettings {
return if (dependency != null && dependency.settings.timeoutPolicy.connectionIdleTimeout != null) {
dependency.settings
} else group.proxySettings.outgoing.defaultServiceSettings
dependency.settings
} else group.proxySettings.outgoing.defaultServiceSettings
}

private fun createClusterForGroup(
Expand Down Expand Up @@ -269,7 +269,11 @@ class EnvoyClustersFactory(
val aggregateCluster =
createAggregateCluster(mainCluster.name, linkedSetOf(secondaryCluster.name, mainCluster.name))
return listOf(mainCluster, secondaryCluster, aggregateCluster)
.also { logger.debug("Created traffic splitting clusters: {}", it) }
.also {
it.forEach { cl ->
logger.debug("Created traffic splitting cluster config with cluster name: {}", cl.name)
}
}
}

private fun createClusters(
Expand Down

0 comments on commit 2b62bc7

Please sign in to comment.