8000 Remove logChannel argument breakchange · symfony/symfony@cc68a33 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc68a33

Browse files
author
Omer LAKRAA
committed
Remove logChannel argument breakchange
1 parent da2bfeb commit cc68a33

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,14 @@ public static function getSubscribedEvents(): array
161161

162162
/**
163163
* Logs an exception.
164+
*
165+
* @param ?string $logChannel
164166
*/
165-
protected function logException(\Throwable $exception, string $message, ?string $logLevel = null, ?string $logChannel = null): void
167+
protected function logException(\Throwable $exception, string $message, ?string $logLevel = null, /* , ?string $logChannel = null */): void
166168
{
169+
$logChannel = 3 < \func_num_args() ? \func_get_arg(3) : $this->resolveLogChannel($exception);
170+
167171
$logLevel ??= $this->resolveLogLevel($exception);
168-
$logChannel ??= $this->resolveLogChannel($exception);
169172

170173
if(!$logger = $this->getLogger($logChannel)) {
171174
return;

0 commit comments

Comments
 (0)
0