diff --git a/weatherApiService/src/main/java/weatherproject/weatherapiservice/client/ApiClient.java b/weatherApiService/src/main/java/weatherproject/weatherapiservice/client/ApiClient.java index 7556931..4b31a74 100644 --- a/weatherApiService/src/main/java/weatherproject/weatherapiservice/client/ApiClient.java +++ b/weatherApiService/src/main/java/weatherproject/weatherapiservice/client/ApiClient.java @@ -5,6 +5,7 @@ import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import org.slf4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -32,6 +33,7 @@ public void init() { } public Object[] getWeather(String city) { + log.info("Метод getWeather успешно вызвался для города: {}", city); var urlForRequest = url.replace("{city}", city); log.info("Собираем http реквест на адрес: {}", urlForRequest); HttpRequest request = HttpRequest.newBuilder()