Skip to content

Commit

Permalink
Update ApiClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 20, 2024
1 parent 1249a2d commit 41dc51a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 41dc51a

Please sign in to comment.