From cb016a7fffab1e3c075eeed1a7fe097c8b454b7a Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 29 Nov 2024 19:18:49 -0500 Subject: [PATCH] Reposition debug log for event handler execution. --- src/TgBotLib/Bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TgBotLib/Bot.php b/src/TgBotLib/Bot.php index 8e35436..58a8e6f 100644 --- a/src/TgBotLib/Bot.php +++ b/src/TgBotLib/Bot.php @@ -485,9 +485,9 @@ // Execute all event handlers that match the update type /** @var UpdateEvent $eventHandler */ - Logger::getLogger()->debug(sprintf('Executing event handler for type %s for update %s', $eventHandler::getEventType()->value, $update->getUpdateId())); foreach($eventHandlers as $eventHandler) { + Logger::getLogger()->debug(sprintf('Executing event handler for type %s for update %s', $eventHandler::getEventType()->value, $update->getUpdateId())); try { (new $eventHandler($update))->handle($this);