From 34e33eb5202570e8343382df7ca6a2e87385a611 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 17 Jan 2018 12:58:26 +0300 Subject: api: do not log successful telegram responses --- juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'juick-api/src/main') diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java index 26eb457a..098d0876 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -119,9 +119,7 @@ public class TelegramBotManager implements ApplicationListener { bot.execute(telegramMessage, new Callback() { @Override public void onResponse(SendMessage request, SendResponse response) { - if (response.message() != null) { - logger.info("got response: {}", response.message()); - } else { + if (!response.isOk()) { logger.warn("null response, isOk: {}, errorCode: {}, description: {}", response.isOk(), response.errorCode(), response.description()); } -- cgit v1.2.3