Symfony 3 and MonologBundle - DebugHandlerPass vs AddDebugLogProcessorPass

I found this PHP post in symfony log:

php.INFO: Symfony \ Bundle \ MonologBundle \ dependency injection \ Compiler \ DebugHandlerPass class is deprecated since version 2.12 and will be removed in version 3.0. using AddDebugLogProcessorPass in FrameworkBundle. {"Type": 16384, "File": "/ highway / 400Go / WWW / sy1 / seller / Symfony / Monologue bundle / dependency injection /Compiler/DebugHandlerPass.php", "line": 14, "level": 28928 , "stack": [...]

I use symfony 3.1.15 and Monolog 2.8 + ... So, the thing should already be deleted, no?

I can see the messages in the DebugHandlerPass class in / vendor / symfony / monolog -bundle / DependencyInjection / Compiler / DebugHandlerPass.php

There are two lines in / vendor / symfony / monolog-bundle / MonologBundle.php that call the DebugHandlerPass class:

use Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\DebugHandlerPass; $container->addCompilerPass(new DebugHandlerPass($channelPass)); 

But nowhere in the PHP files is there a class AddDebugLogProcessorPass ...

Possibly version mismatch. If anyone could give me a hint, that would be great.

Yours faithfully,

MS

+8
php symfony monolog
source share
2 answers

Just update your symfony / monolog-bundle dependency to the latest version 3.0 and it will do the trick;)

https://packagist.org/packages/symfony/monolog-bundle

Hi,

+7
source share

There is a pending Pull request, see https://github.com/symfony/monolog-bundle/pull/188 . Once this PR has been combined, the cancel message INFO will disappear.

+4
source share

All Articles