You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Propel" section of the Symfony profiler is inactive, because connection is not in debug mode.
I attempted to fix it by adding
if ($this->container->getParameter('kernel.debug')) {
$connection->useDebug(true);
}
in PropelBundle::configureLogging() to both read and write connections. This worked fine whith browser request, Propel queries appeared correctly in profiler, but caused a huge memory leak when executing queries in phpunit tests. In Propel's ConnectionWrapper::callUserFunctionWithLogging() both $callback(...$args); and $this->log($sqlForLog); increased memory usage by 17K for each query.
(Symfony 5.4.18, PHP 8.0.24, MySQL 5.7, PHPUnit 9.3.11)
Great job by fixing up PropelBundle btw! Really appreciate it!
The text was updated successfully, but these errors were encountered:
papatti
changed the title
Propel entires missing from profiler if APP_DEV is on
Propel entries missing from profiler if APP_DEV is on
Jan 23, 2023
The "Propel" section of the Symfony profiler is inactive, because connection is not in debug mode.
I attempted to fix it by adding
in PropelBundle::configureLogging() to both read and write connections. This worked fine whith browser request, Propel queries appeared correctly in profiler, but caused a huge memory leak when executing queries in phpunit tests. In Propel's ConnectionWrapper::callUserFunctionWithLogging() both $callback(...$args); and $this->log($sqlForLog); increased memory usage by 17K for each query.
(Symfony 5.4.18, PHP 8.0.24, MySQL 5.7, PHPUnit 9.3.11)
Great job by fixing up PropelBundle btw! Really appreciate it!
The text was updated successfully, but these errors were encountered: