From 53b574b559ebdd88136f58838a7a9d2e02d0785a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20Marte=20Hjem=C3=A5s?= Date: Thu, 25 May 2023 09:52:01 +0200 Subject: [PATCH] ID-2953: remove confusing log line (#43) remove confusing log line --- .../idporten/actuator/config/HealthCheckEndpointConfig.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/no/idporten/actuator/config/HealthCheckEndpointConfig.java b/src/main/java/no/idporten/actuator/config/HealthCheckEndpointConfig.java index e04aaab..42f63be 100644 --- a/src/main/java/no/idporten/actuator/config/HealthCheckEndpointConfig.java +++ b/src/main/java/no/idporten/actuator/config/HealthCheckEndpointConfig.java @@ -42,11 +42,8 @@ public HealthCheckEndpointConfig(GenericApplicationContext applicationContext, H @Override public void afterPropertiesSet() { - if (healthCheckEndpointProperties.healthEndpoints() == null || healthCheckEndpointProperties.healthEndpoints().isEmpty()) { - log.info("No health check endpoints configured"); - } else { + if (healthCheckEndpointProperties.healthEndpoints() != null && !healthCheckEndpointProperties.healthEndpoints().isEmpty()) { log.info("Configured health check endpoints: {}", healthCheckEndpointProperties.healthEndpoints().keySet()); } - } }