From 0ea693f54abb1730b3cbec6f287858a05243b9b2 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 26 Apr 2023 20:24:46 +0300 Subject: [PATCH] pre-release --- pom.xml | 2 +- .../godfather/telegram/webhook/WebhookController.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index d430b96..ef77949 100644 --- a/pom.xml +++ b/pom.xml @@ -38,7 +38,7 @@ UTF-8 UTF-8 - 0.0.60 + 0.0.61 6.5.0 diff --git a/telegram-webhook/telegram-webhook-quarkus/src/main/java/dev/struchkov/godfather/telegram/webhook/WebhookController.java b/telegram-webhook/telegram-webhook-quarkus/src/main/java/dev/struchkov/godfather/telegram/webhook/WebhookController.java index 10dff12..d029b15 100644 --- a/telegram-webhook/telegram-webhook-quarkus/src/main/java/dev/struchkov/godfather/telegram/webhook/WebhookController.java +++ b/telegram-webhook/telegram-webhook-quarkus/src/main/java/dev/struchkov/godfather/telegram/webhook/WebhookController.java @@ -40,12 +40,12 @@ public class WebhookController { public Uni updateReceived(@PathParam("webhookPath") String botPath, @HeaderParam("X-Telegram-Bot-Api-Secret-Token") String secretTokenFromTelegram, Update update) { return Uni.createFrom().voidItem() .invoke(() -> { - log.debug("Получено webhook событие"); + log.trace("Получено webhook событие: {}", update); isTrue(pathKey.equals(botPath), accessException(ERROR_ACCESS)); isTrue(secretToken.equals(secretTokenFromTelegram), accessException(ERROR_ACCESS)); }) .call(() -> eventDistributor.processing(update)) - .invoke(() -> log.debug("Сообщили Telegram, что вебхук событие обработано")) + .invoke(() -> log.trace("Сообщили Telegram, что вебхук событие обработано. Идентификатор события: {}", update.getUpdateId())) .map(ignored -> Response.ok().build()); }