Skip to content

Commit

Permalink
Some refactor and add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 27, 2024
1 parent 0acdb4a commit 010ad9c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public String getCityByCoordinates(double latitude, double longitude) {
.queryParam("lat", latitude)
.queryParam("lon", longitude)
.toUriString();
log.debug("Пробуем получить название города с координатами {}, {} по следующему API запросу {}", latitude, longitude, url);
log.info("Пробуем получить название города с координатами {}, {} по следующему API запросу {}", latitude, longitude, url);

try {
// Выполнение GET запроса и получение ответа в виде строки
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import weatherproject.tgbotservice.clients.GeocodingClient;
import weatherproject.tgbotservice.clients.GoogleTranslateClient;
import weatherproject.tgbotservice.clients.UserServiceClient;
import weatherproject.tgbotservice.clients.WeatherServiceClient;
import weatherproject.tgbotservice.dto.UserDTO;
import weatherproject.tgbotservice.dto.WeatherDTO;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;
import org.telegram.telegrambots.meta.api.methods.send.SendMessage;
import org.telegram.telegrambots.meta.api.objects.Update;
import weatherproject.tgbotservice.clients.GoogleTranslateClient;
Expand All @@ -20,7 +19,6 @@
public class UpdateCommand implements Command {
private final WeatherServiceClient weatherServiceClient;
private final GoogleTranslateClient translateClient;
private final WebApplicationContext webApplicationContext;

@Override
public SendMessage apply(UserDTO currentUser, Update update) {
Expand Down

0 comments on commit 010ad9c

Please sign in to comment.