diff --git a/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ApplicationInfo.java b/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ApplicationInfo.java index e2bc3305..5bbb8c8a 100644 --- a/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ApplicationInfo.java +++ b/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ApplicationInfo.java @@ -1,5 +1,6 @@ package au.org.aodn.ogcapi.server.core.service; +import lombok.extern.slf4j.Slf4j; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; @@ -9,6 +10,10 @@ import java.util.Map; public interface ApplicationInfo { + @Slf4j + class LogHolder { + // Lombok injects the logger here inside the static inner class + } /** * Query this is repeat code to query the info path * @param restTemplate - The template of the service @@ -20,6 +25,8 @@ default Map> queryInfo(RestTemplate restTemplate, String host, if(path != null) { try { String das = String.format("%s/%s", host, path); + + LogHolder.log.info("Query service info for {}, {}", host, path); ResponseEntity>> response = restTemplate.exchange( das, HttpMethod.GET,