diff --git a/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java b/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java index 0a53c19..32f61ea 100644 --- a/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java +++ b/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java @@ -101,9 +101,11 @@ public void handleChangeAvgTemp(String message) { } private void sendMessage(SendMessage sendMessage) { + log.info("Пытаемся отправить сообщение чату {} со следующим содержанием: {}", sendMessage.getChatId(), sendMessage.getText()); try { sendMessage.setReplyMarkup(LocationRequestButton.requestLocation()); execute(sendMessage); + log.info("Сообщение \"{}\" успешно отправлено!", sendMessage.getText()); } catch (TelegramApiException e) { log.error(e.getMessage()); }