Skip to content

Commit 79ed24b

Browse files
committed
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.
1 parent 6acef3b commit 79ed24b

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)