Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 85b832b

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

File tree

3 files changed

+3
-4
lines changed
Filter options

3 files changed

+3
-4
lines changed

‎src/Symfony/Component/HttpKernel/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/CHANGELOG.md
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php
+1-2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.