Closed
Description
Hi,
Symfony documentation says only 500 pages are profiled if only_exception
is set.
But it's wrong. All exceptions are stored, it don't take status_code
in consideration to profile and i would like to know if it's a valid use case (btw i'll make a pr on symfony-docs
) or a bug.
If it's a bug i can make a PR to fix it.
In this method
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php#L89 we could check for $event->getResponse()->getStatusCode()
and store only 5xx
OR
To stay BC, introduce a status_codes
into framework.profiler
configuration.
Metadata
Metadata
Assignees
Labels
No labels