added log

This commit is contained in:
Francesco Mangiacrapa 2024-10-18 15:14:02 +02:00
parent c2f65dd234
commit ca5c9eec77
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ public class GeoportalHealthCheck implements HealthCheck {
@Override @Override
public HealthCheckResponse call() { public HealthCheckResponse call() {
log.info(GeoportalHealthCheck.class.getSimpleName() + " call"); log.info(GeoportalHealthCheck.class.getSimpleName() + " call");
return HealthCheckResponse.named(SERVICE_NAME).state(true).withData("status", "healthy").build(); HealthCheckResponse response = HealthCheckResponse.named(SERVICE_NAME).state(true).withData("serviceStatus", "healthy").build();
log.info("Generated HealthCheckResponse: " + response);
return response;
} }
} }