Closed
Description
Symfony version(s) affected: 5.0 - 5.4
Description
In onMessageFailed
method of SendFailedMessageForRetryListener
, precisely in line 89, the RedeliveryStamp
constructor is only called with retry count, and message is lost.
How to reproduce
Have a message fails with an error and retry. Log the tries. Instead of getting the error message, you get null.
Possible Solution
The constructor of RedeliveryStamp
should be called with the second argument, too.
Current call: new RedeliveryStamp($retryCount)
New call: new RedeliveryStamp($retryCount, $throwable->getMessage())