Skip to content

Commit d9168e4

Browse files
authored
Merge pull request #77 from Maxell92/feature/log-exception
Log whole Exception for UnrecoverableException instead of message only
2 parents 1c30839 + 256e592 commit d9168e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/Sqs/SqsConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function handleSqs(SqsEvent $event, Context $context): void
9696
$this->busDriver->putEnvelopeOnBus($this->bus, $envelope->with(...$stamps), $this->transportName);
9797
} catch (UnrecoverableExceptionInterface $exception) {
9898
$this->logger->error(sprintf('SQS record with id "%s" failed to be processed. But failure was marked as unrecoverable. Message will be acknowledged.', $record->getMessageId()));
99-
$this->logger->error($exception->getMessage());
99+
$this->logger->error($exception);
100100
} catch (\Throwable $exception) {
101101
if ($this->partialBatchFailure === false) {
102102
throw $exception;

0 commit comments

Comments
 (0)