Skip to content

Commit 20664ca

Browse files
committed
[Messenger] added missing information in messenger logs
1 parent f206538 commit 20664ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Middleware/LoggingMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function handle(Envelope $envelope, StackInterface $stack): Envelope
4646
$envelope = $stack->next()->handle($envelope, $stack);
4747
} catch (\Throwable $e) {
4848
$context['exception'] = $e;
49-
$this->logger->warning('An exception occurred while handling message "{class}"', $context);
49+
$this->logger->warning('An exception occurred while handling message "{class}": '.$e->getMessage(), $context);
5050

5151
throw $e;
5252
}

src/Symfony/Component/Messenger/Middleware/SendMessageMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function handle(Envelope $envelope, StackInterface $stack): Envelope
9191
}
9292
} catch (\Throwable $e) {
9393
$context['exception'] = $e;
94-
$this->logger->warning('An exception occurred while handling message "{class}"', $context);
94+
$this->logger->warning('An exception occurred while handling message "{class}": '.$e->getMessage(), $context);
9595

9696
throw $e;
9797
}

0 commit comments

Comments
 (0)