aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-17 12:58:26 +0300
committerGravatar Vitaly Takmazov2018-01-17 12:58:26 +0300
commit34e33eb5202570e8343382df7ca6a2e87385a611 (patch)
treeb67ed05e68d135988808d956dcd5ffb5627b159f /juick-api/src/main/java/com/juick/api
parent3863efc21c57345cc9cea0ad4bf18291d6808370 (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.java4
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());
}