From 4206d17345b07726ccc60679a65655cbc7817bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 17 Jun 2025 14:25:57 +0200 Subject: [PATCH] Add debug logging for SQL query execution during export process --- src/Bundle/ChillMainBundle/Export/ExportGenerator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Export/ExportGenerator.php b/src/Bundle/ChillMainBundle/Export/ExportGenerator.php index 6285bcdbd..7e2cfc6dd 100644 --- a/src/Bundle/ChillMainBundle/Export/ExportGenerator.php +++ b/src/Bundle/ChillMainBundle/Export/ExportGenerator.php @@ -92,6 +92,9 @@ final readonly class ExportGenerator $this->logger->notice('[export] will execute this qb in export', [ 'dql' => $query->getDQL(), ]); + $this->logger->debug('[export] will execute this sql qb in export', [ + 'sql' => $query->getQuery()->getSQL(), + ]); } else { throw new \UnexpectedValueException('The method `intiateQuery` should return a `\Doctrine\ORM\NativeQuery` or a `Doctrine\ORM\QueryBuilder` object.'); }