Skip to content

Navigation Menu

Sign in
Appearance settings

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 37b616f

Browse filesBrowse 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
Copy full SHA for 37b616f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Messenger/Worker.php

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