From c51aac10c222cdc6595ed4c2c441fbcaa8c1e272 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 17 Jan 2018 12:30:57 +0300 Subject: api: trying to debug telegram messages lost --- juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'juick-api/src/main/java/com/juick/api') 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 801bb0a7..66aba78f 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -119,7 +119,11 @@ public class TelegramBotManager implements ApplicationListener { bot.execute(telegramMessage, new Callback() { @Override public void onResponse(SendMessage request, SendResponse response) { - logger.info("got response: {}", response.message()); + if (response.message() != null) { + logger.info("got response: {}", response.message()); + } else { + logger.warn("null response, isOk: {}, errorCode: {}", response.isOk(), response.errorCode()); + } } @Override -- cgit v1.2.3