Fresh installation floods dev log with kernel events #7528
-
Hello 👋🏼 my team and I are evaluating this as we utilize Symfony, but we've noticed that installing this package has dramatically increased the amount of kernel event notices we are getting in our logs. When we do not have this package installed, we see very few of these, if any, however, after installation, we'll see hundreds per second effectively making our logs useless. In one instance, it writes so much that one of my team members sees timeouts during web requests. I know there's an option to add Some potentially helpful information: Example log {
"message": "Notified event \"kernel.finish_request\" to listener \"Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelFinishRequest\".",
"context": {
"event": "kernel.finish_request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelFinishRequest",
"requestId": "29538686-95d2-11ee-95c6-cf04550d2ce3",
"environment": "dev",
"release": "unknown"
},
"level": 100,
"level_name": "DEBUG",
"channel": "event",
"datetime": "2023-12-08T14:00:36.492890+00:00",
"extra": {}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Fixer does not have anything to do with Symfony's HTTP events, actually it does not hook into any kernel events within app where it's installed. It's a CLI tool separated from the app itself and should not be installed outside of the dev stage. One scenario I can think of is that during the installation of Fixer some other packages were installed/updated and some components were auto-discovered by Symfony and registered in a DI container. Please verify what packages were modified and provide that info here, if you can. Also please check how it works if you install |
Beta Was this translation helpful? Give feedback.
IMHO it's
symfony/stopwatch
that is causing changes in your logs. I can't say for sure, but I believe existence of this package enables some listeners in the framework and it starts to log request events that was not the case before. I believe installing shim version of Fixer should solve your problem because it will no longer install additional packages along with Fixer 🙂.