Skip to content

Commit

Permalink
Merge pull request #2 from autorusltd/feature/InvalidPayloadException…
Browse files Browse the repository at this point in the history
…LogLevelUp

Уровень логирования поднят с warning на error при возникновении InvalidPayloadException
  • Loading branch information
MartinDugin authored Sep 7, 2021
2 parents 714e195 + 143c9ca commit 4f85e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function process(MessageInterface $message, QueueInterface $queue) : void
$queue->reject($message);

if ($this->logger instanceof LoggerInterface) {
$this->logger->warning(sprintf(
$this->logger->error(sprintf(
'The queue message <%d> contains invalid payload (reject executed). %s',
$message->getId(),
$e->getMessage()
Expand Down

0 comments on commit 4f85e13

Please sign in to comment.