Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand All @@ -20,6 +25,8 @@ default Map<String, 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<Map<String, Map<?, ?>>> response = restTemplate.exchange(
das,
HttpMethod.GET,
Expand Down
Loading