This README outlines the steps to set up a Symfony project and reproduce the issue described in symfony/symfony#57902.
To create the project I took the following steps:
- Create a new Symfony 6.4 project using the Symfony CLI
- Install monolog (
composer require monolog
) - Applied the production monolog configuration to @dev
- Created a controller that highlights the issue
Run the project
symfony serve
-
Go to http://127.0.0.1:8000/stream/no-issue, notice the logs
-
Go to http://127.0.0.1:8000/stream/issue, notice the logs
In the second request, the fingers_crossed handler did not include the 404 error from the logs.