8000 bug #50944 [FrameworkBundle] Add missing monolog channel tag to the `… · symfony/symfony@f57faf3 · GitHub
[go: up one dir, main page]

Skip to content

Commit f57faf3

Browse files
committed
bug #50944 [FrameworkBundle] Add missing monolog channel tag to the messenger:failed:retry command (HypeMC)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] Add missing monolog channel tag to the `messenger:failed:retry` command | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Noticed this while working on #50787, similar to #49843. Commits ------- 8f30c1e [FrameworkBundle] Add missing monolog channel tag to the `messenger:failed:retry` command
2 parents b899365 + 8f30c1e commit f57faf3

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/console.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,10 @@
181181
abstract_arg('Receivers'),
182182
service('messenger.routable_message_bus'),
183183
service('event_dispatcher'),
184-
service('logger'),
184+
service('logger')->nullOnInvalid(),
185185
])
186186
->tag('console.command')
187+
->tag('monolog.logger', ['channel' => 'messenger'])
187188

188189
->set('console.command.messenger_failed_messages_show', FailedMessagesShowCommand::class)
189190
->args([

0 commit comments

Comments
 (0)
0