Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #54046 [HttpKernel] Increase log level to "error" at least for …
…all PHP errors (lyrixx) This PR was merged into the 7.1 branch. Discussion ---------- [HttpKernel] Increase log level to "error" at least for all PHP errors | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix #54036 | License | MIT reproducer: with a simple `$a = $b` in a controller. Before ``` [PHP ] [Fri Feb 23 17:14:26 2024] 127.0.0.1:42604 Accepted [PHP ] [Fri Feb 23 17:14:26 2024] 127.0.0.1:42604 [200]: GET / [Web Server ] Feb 23 17:14:26 |INFO | SERVER GET (200) / ip="127.0.0.1" [PHP ] [Fri Feb 23 17:14:26 2024] 127.0.0.1:42604 Closing ``` After ``` [Web Server ] Feb 23 17:15:11 |INFO | SERVER GET (200) / ip="127.0.0.1" [PHP ] [Fri Feb 23 17:15:11 2024] 127.0.0.1:57906 Accepted [PHP ] {"message":"Matched route \"app_homepage_index\".","context":{"route":"app_homepage_index","route_parameters":{"_route":"app_homepage_index","_controller":"App\\Controller\\HomepageController::index"},"request_uri":"https://127.0.0.1:8000/","method":"GET"},"level":200,"level_name":"INFO","channel":"request","datetime":"2024-02-23T17:15:11.090004+01:00","extra":{}} [PHP ] {"message":"Checking for authenticator support.","context":{"firewall_name":"main","authenticators":0},"level":100,"level_name":"DEBUG","channel":"security","datetime":"2024-02-23T17:15:11.090469+01:00","extra":{}} [PHP ] {"message":"Warning: Undefined variable $b","context":{"exception":{"class":"ErrorException","message":"Warning: Undefined variable $b","code":0,"file":"/home/gregoire/dev/labs/symfony/symfony-7.1/src/Controller/HomepageController.php:20"}},"level":400,"level_name":"ERROR","channel":"php","datetime":"2024-02-23T17:15:11.090872+01:00","extra":{}} [PHP ] [Fri Feb 23 17:15:11 2024] 127.0.0.1:57906 [200]: GET / [PHP ] [Fri Feb 23 17:15:11 2024] 127.0.0.1:57906 Closing ``` Commits ------- 796950b [HttpKernel] Increase log level to "error" at least for all PHP errors
- Loading branch information