DataDogAuditBundle icon indicating copy to clipboard operation
DataDogAuditBundle copied to clipboard

"Maximum function nesting level" php recursion error when using this bundle and flushing more than 256 times in a script.

Open d-ph opened this issue 4 years ago • 0 comments

Hello,

This leads to

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Maximum function nesting level of '256' reached, aborting! in /srv/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php on line 31

Symfony\Component\Debug\Exception\FatalThrowableError: Maximum function nesting level of '256' reached, aborting! in /srv/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php on line 31

when a one is flushing more than 256 times in a script, while using this bundle. One can see in the stack trace a long chain of LoggerChain.php instances, which at some point trips the php's configured max recursion level.

There are use cases when one needs to flush a lot in a script.

Fyi.

d-ph avatar Nov 25 '21 16:11 d-ph