aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-17 12:42:52 +0300
committerGravatar Vitaly Takmazov2018-01-17 12:42:52 +0300
commit3863efc21c57345cc9cea0ad4bf18291d6808370 (patch)
tree3dbe4d635c63641e5f026ed00904377035d4a651
parentc51aac10c222cdc6595ed4c2c441fbcaa8c1e272 (diff)
api: also log telegram error description
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java3
1 files changed, 2 insertions, 1 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 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<MessageEvent> {
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());
}
}