Skip to content

Commit 85b832b

Browse files
ro0NLfabpot
authored andcommitted
[HttpKernel] Log/Collect exceptions at prio 0
1 parent 28af1a6 commit 85b832b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CHANGELOG
55
-----
66

77
* added orphaned events support to `EventDataCollector`
8-
* `ExceptionListener` now logs and collects exceptions at priority `2048` (previously logged at `-128` and collected at `0`)
8+
* `ExceptionListener` now logs exceptions at priority `0` (previously logged at `-128`)
99
* Deprecated `service:action` syntax with a single colon to reference controllers. Use `service::method` instead.
1010
* Added the ability to profile individual argument value resolvers via the
1111
`Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver`

src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public function __construct($controller, LoggerInterface $logger = null, $debug
4444
public function logKernelException(GetResponseForExceptionEvent $event)
4545
{
4646
$exception = $event->getException();
47-
$request = $event->getRequest();
4847

4948
$this->logException($exception, sprintf('Uncaught PHP Exception %s: "%s" at %s line %s', get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine()));
5049
}
@@ -90,7 +89,7 @@ public static function getSubscribedEvents()
9089
{
9190
return array(
9291
KernelEvents::EXCEPTION => array(
93-
array('logKernelException', 2048),
92+
array('logKernelException', 0),
9493
array('onKernelException', -128),
9594
),
9695
);

src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static function getSubscribedEvents()
121121
{
122122
return array(
123123
KernelEvents::RESPONSE => array('onKernelResponse', -100),
124-
KernelEvents::EXCEPTION => array('onKernelException', 2048),
124+
KernelEvents::EXCEPTION => array('onKernelException', 0),
125125
KernelEvents::TERMINATE => array('onKernelTerminate', -1024),
126126
);
127127
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy