From 3863efc21c57345cc9cea0ad4bf18291d6808370 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 17 Jan 2018 12:42:52 +0300 Subject: api: also log telegram error description --- juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-api/src/main/java/com') 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 66aba78f..26eb457a 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -122,7 +122,8 @@ public class TelegramBotManager implements ApplicationListener { if (response.message() != null) { logger.info("got response: {}", response.message()); } else { - logger.warn("null response, isOk: {}, errorCode: {}", response.isOk(), response.errorCode()); + logger.warn("null response, isOk: {}, errorCode: {}, description: {}", + response.isOk(), response.errorCode(), response.description()); } } -- cgit v1.2.3