Skip to content

Commit

Permalink
Changing message handling log levels to higher levels
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Mar 29, 2019
1 parent 162d5a8 commit 9153c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Messenger/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function run()

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

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

$this->receiver->reject($envelope);
Expand Down

0 comments on commit 9153c48

Please sign in to comment.