Commit ff4cf5b9 by Lech Sawon

log error

parent 337b1736
......@@ -28,7 +28,7 @@ final class ApiExceptionSubscriber implements EventSubscriberInterface
{
return [
KernelEvents::EXCEPTION => [
['logException', 100],
['logException', 50],
['processException', 10],
]
......@@ -46,6 +46,8 @@ final class ApiExceptionSubscriber implements EventSubscriberInterface
$request = $this->requestStack->getCurrentRequest();
if ($request && false === strpos($request->getRequestUri(), 'api')) {
//musimy uważać na użycie w subscribere, bo możemy przerwać działanie
// "bardziej" niż byśmy chcieli
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment