Skip to content

Commit

Permalink
[FrameworkBundle] Don't log twice with the error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas authored and xabbuh committed Jan 18, 2016
1 parent 31aef7b commit 90d493e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -139,6 +139,8 @@ public function load(array $configs, ContainerBuilder $container)
}

if ($container->getParameter('kernel.debug')) {
$definition->replaceArgument(2, -1 & ~(E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR | E_RECOVERABLE_ERROR));

$loader->load('debug.xml');

$definition = $container->findDefinition('http_kernel');
Expand All @@ -150,7 +152,7 @@ public function load(array $configs, ContainerBuilder $container)
$container->setDefinition('debug.event_dispatcher.parent', $definition);
$container->setAlias('event_dispatcher', 'debug.event_dispatcher');
} else {
$definition->replaceArgument(2, E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR);
$definition->replaceArgument(1, null);
}

$this->addClassesToCompile(array(
Expand Down

0 comments on commit 90d493e

Please sign in to comment.