Skip to content

Commit d148888

Browse files
committed
bug #195 revert disabling DebugHandler in CLI environments (xabbuh)
This PR was merged into the 2.x branch. Discussion ---------- revert disabling DebugHandler in CLI environments As the cache is shared between the different server APIs, the debug handler needs to take care of abstaining itself. After symfony/symfony#21061 being merged, the changes made in fbbcefd should no longer be necessary. Commits ------- 79ed24b revert disabling DebugHandler in CLI environments
2 parents 6acef3b + 79ed24b commit d148888

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

DependencyInjection/Compiler/DebugHandlerPass.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ public function process(ContainerBuilder $container)
4646
return;
4747
}
4848

49-
// disable the DebugHandler in CLI as it tends to leak memory if people enable kernel.debug
50-
if ('cli' === PHP_SAPI) {
51-
return;
52-
}
53-
5449
$debugHandler = new Definition('%monolog.handler.debug.class%', array(Logger::DEBUG, true));
5550
$container->setDefinition('monolog.handler.debug', $debugHandler);
5651

0 commit comments

Comments
 (0)