From ebfe5808daf09644167dc6c10e37e5001453f3be Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 19 Jun 2019 11:27:13 +0300 Subject: Telegram: webhook logging --- src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/juick/server/api') diff --git a/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java b/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java index 7a5cebda..3301d60a 100644 --- a/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java +++ b/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java @@ -42,7 +42,7 @@ import java.nio.charset.StandardCharsets; @RestController @ConditionalOnProperty({"telegram_token"}) public class TelegramWebhook { - private static final Logger logger = LoggerFactory.getLogger(TelegramWebhook.class); + private static final Logger logger = LoggerFactory.getLogger("Telegram"); @Inject private TelegramBotManager telegramBotManager; @@ -50,7 +50,7 @@ public class TelegramWebhook { @ResponseStatus(value = HttpStatus.OK) public void processUpdate(InputStream body) throws Exception { String data = IOUtils.toString(body, StandardCharsets.UTF_8); - logger.info("Telegram update: {}", data); + logger.debug("Telegram update: {}", data); Update update = BotUtils.parseUpdate(data); telegramBotManager.processUpdate(update); } -- cgit v1.2.3