Skip to content

Commit

Permalink
Merge pull request #7 from veewee/better-trace-info
Browse files Browse the repository at this point in the history
Provide better trace info
  • Loading branch information
veewee authored Jan 10, 2024
2 parents 8d2d30d + 7017e2e commit 4e52de3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Domain/Query/FetchMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __invoke(int $messageId, bool $withDetails): FailedMessage
->withMessageDetails($this->serializer->serialize($message->getMessage(), 'json'))
->withMessageBusName($message->last(BusNameStamp::class)?->getBusName())
->withMessageOriginalTransport($message->last(SentToFailureTransportStamp::class)?->getOriginalReceiverName())
->withErrorTrace($lastErrorStamp?->getFlattenException()?->getTraceAsString())
->withErrorTrace($lastErrorStamp?->getFlattenException()?->getAsString())
->withFailedDates(...array_map(
fn (RedeliveryStamp $stamp): \DateTimeInterface => $stamp->getRedeliveredAt(),
$message->all(RedeliveryStamp::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function it_will_respond_with_bad_request_when_requeue_failed(): void
'identifiers' => [1, 2],
]));

$this->handler->__invoke(1)->willThrow(new \RuntimeException('Something failed'));
$this->handler->__invoke(1)->willThrow(new RuntimeException('Something failed'));

$response = ($this->controller)($request);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function it_will_respond_with_bad_request_when_retry_failed(): void
'identifiers' => [1, 2],
]));

$this->handler->__invoke(1)->willThrow(new \RuntimeException('Something failed'));
$this->handler->__invoke(1)->willThrow(new RuntimeException('Something failed'));

$response = ($this->controller)($request);

Expand Down

0 comments on commit 4e52de3

Please sign in to comment.