Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit f468b11

Browse files
stanislav.kovinTekill
authored andcommitted
SCENTRE-6712 Low log level for attempts count maximum
1 parent 6974574 commit f468b11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Consumer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,13 @@ public function execute(AMQPMessage $message): int
8080
return $this->doExecute(
8181
$this->queueService->getToProcess($data['id'])
8282
);
83-
} catch (UnexpectedValueException | AttemptsReachedException $exception) {
83+
} catch (UnexpectedValueException $exception) {
8484
$this->logger->alert($exception->getMessage(), $this->getMessageLogParams($message));
8585

86+
return self::MSG_REJECT;
87+
} catch (AttemptsReachedException $exception) {
88+
$this->logger->notice($exception->getMessage(), $this->getMessageLogParams($message));
89+
8690
return self::MSG_REJECT;
8791
}
8892
}

0 commit comments

Comments
 (0)