Skip to content

Commit e36d996

Browse files
author
Omer Lakraa
committed
Feedback
1 parent bf0534d commit e36d996

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ CHANGELOG
1414
* Add support for signal plain name in the `messenger.stop_worker_on_signals` configuration
1515
* Deprecate the `framework.validation.cache` option
1616
* Add `--method` option to the `debug:router` command
17+
* Add exception.x.log_channel
18+
* Allow configuring the logging channel per type of exceptions
1719

1820
7.2
1921
---
@@ -35,9 +37,6 @@ CHANGELOG
3537
* Add support for configuring multiple serializer instances via the configuration
3638
* Add support for `SYMFONY_TRUSTED_PROXIES`, `SYMFONY_TRUSTED_HEADERS`, `SYMFONY_TRUST_X_SENDFILE_TYPE_HEADER` and `SYMFONY_TRUSTED_HOSTS` env vars
3739
* Add `--no-fill` option to `translation:extract` command
38-
* Add exception.x.log_channel
39-
* Add a new logging channel for exceptions to provide better granularity and control over exception logging.
40-
* Allow configuring the logging channel per type of exceptions
4140

4241
7.1
4342
---

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,7 @@ private function addExceptionsSection(ArrayNodeDefinition $rootNode): void
14601460
->end()
14611461
->scalarNode('log_channel')
14621462
->info('The channel of log message. Null to let Symfony decide.')
1463+
->defaultNull()
14631464
->end()
14641465
->end()
14651466
->end()

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ public function load(array $configs, ContainerBuilder $container): void
421421
}
422422

423423
$exceptionListener
424-
->replaceArgument(3, $config['exceptions'])
425-
->replaceArgument(4, $loggers)
424+
->setArgument(3, $config['exceptions'])
425+
->setArgument(4, $loggers)
426426
;
427427

428428
if ($this->readConfigEnabled('serializer', $container, $config['serializer'])) {

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ CHANGELOG
66

77
* Add `$key` argument to `#[MapQueryString]` that allows using a specific key for argument resolving
88
* Support `Uid` in `#[MapQueryParameter]`
9-
9+
* Allow configuring the logging channel per type of exceptions in ErrorListener
10+
1011
7.2
1112
---
1213

1314
* Remove `@internal` flag and add `@final` to `ServicesResetter`
1415
* Add support for `SYMFONY_DISABLE_RESOURCE_TRACKING` env var
1516
* Add support for configuring trusted proxies/headers/hosts via env vars
1617
* Remove `@internal` flag and add `@final` to `ServicesResetter`
17-
* Add log_channel in `ErrorListener`
18-
* Add a new logging channel for exceptions to provide better granularity and control over exception logging.
19-
* Allow configuring the logging channel per type of exceptions in ErrorListener
18+
2019

2120
7.1
2221
---

src/Symfony/Component/HttpKernel/Tests/EventListener/ErrorListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function testHandleWithLogChannel()
161161
'log_level' => 'error',
162162
'status_code' => 402,
163163
],
164-
], ['channel' => $channelLoger,]);
164+
], ['channel' => $channelLoger]);
165165

166166
$l->logKernelException($event);
167167
$l->onKernelException($event);
@@ -189,7 +189,7 @@ public function testHandleWithLoggerChannelNotUsed()
189189
'status_code' => 402,
190190
'log_channel' => 'channel',
191191
],
192-
], ['channel' => $channelLoger,]);
192+
], ['channel' => $channelLoger]);
193193
$l->logKernelException($event);
194194
$l->onKernelException($event);
195195

0 commit comments

Comments
 (0)