8000 minor #30764 [Messenger] Changing message handling log levels to high… · symfony/symfony@37b616f · GitHub
[go: up one dir, main page]

Skip to content

Commit 37b616f

Browse files
committed
minor #30764 [Messenger] Changing message handling log levels to higher levels (weaverryan)
This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Changing message handling log levels to higher levels | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | not needed Update log levels so that the user can configure the logger to be notified of errors. This was really an oversight when I originally added the logging. Cheers! Commits ------- 9153c48 Changing message handling log levels to higher levels
2 parents 162d5a8 + 9153c48 commit 37b616f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Worker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function run()
9999

100100
$retryCount = $this->getRetryCount($envelope) + 1;
101101
if (null !== $this->logger) {
102-
$this->logger->info('Retrying {class} - retry #{retryCount}.', $context + ['retryCount' => $retryCount, 'error' => $throwable]);
102+
$this->logger->error('Retrying {class} - retry #{retryCount}.', $context + ['retryCount' => $retryCount, 'error' => $throwable]);
103103
}
104104

105105
// add the delay and retry stamp info + remove ReceivedStamp
@@ -113,7 +113,7 @@ public function run()
113113
$this->receiver->ack($envelope);
114114
} else {
115115
if (null !== $this->logger) {
116-
$this->logger->info('Rejecting {class} (removing from transport).', $context + ['error' => $throwable]);
116+
$this->logger->critical('Rejecting {class} (removing from transport).', $context + ['error' => $throwable]);
117117
}
118118

119119
$this->receiver->reject($envelope);

0 commit comments

Comments
 (0)
0