From 819a4fa19dd40905261835937eeb0a602f0c25bc Mon Sep 17 00:00:00 2001 From: Mikko Karjalainen Date: Mon, 18 Nov 2019 09:01:59 +0000 Subject: [PATCH] Add informational message at the end of health checks. Change its level to DEBUG. --- .../hotels/styx/services/HealthCheckMonitoringService.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/proxy/src/main/kotlin/com/hotels/styx/services/HealthCheckMonitoringService.kt b/components/proxy/src/main/kotlin/com/hotels/styx/services/HealthCheckMonitoringService.kt index 5fa87fcadf..91f873410f 100644 --- a/components/proxy/src/main/kotlin/com/hotels/styx/services/HealthCheckMonitoringService.kt +++ b/components/proxy/src/main/kotlin/com/hotels/styx/services/HealthCheckMonitoringService.kt @@ -125,7 +125,11 @@ internal class HealthCheckMonitoringService( .flatMap { it } .collectList() .subscribe { - LOGGER.info("Health Check Completed ..") + val details = it.joinToString(", ") { (name, _, health2) -> + "{ app: $application, host: $name, result: $health2 }" + } + + LOGGER.debug("Health Check Completed: ${details}") } }