diff options
author | Vitaly Takmazov | 2018-01-17 12:58:26 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-17 12:58:26 +0300 |
commit | 34e33eb5202570e8343382df7ca6a2e87385a611 (patch) | |
tree | b67ed05e68d135988808d956dcd5ffb5627b159f /juick-api/src/main/java/com/juick/api | |
parent | 3863efc21c57345cc9cea0ad4bf18291d6808370 (diff) |
api: do not log successful telegram responses
Diffstat (limited to 'juick-api/src/main/java/com/juick/api')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 4 |
1 files changed, 1 insertions, 3 deletions
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<MessageEvent> { bot.execute(telegramMessage, new Callback<SendMessage, SendResponse>() { @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()); } |