LazyResolutionMessage
does not implement proper toString
#21265
Labels
in: messaging
Issues in messaging modules (jms, messaging)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
John opened SPR-16724 and commented
When JMS listerner configured in spring reads JMS from queue/topic it can log the message just by enabling corresponding logger.
For produced (outgoing) messages it works without problem.
For consumed (incoming) messages logging is done by MessagingMessageListenerAdapter in method: onMessage but it is logged after transformation to MessagingMessage which is by default LazyResolutionMessage which means it breaks logging as no payload or headers are logged from this message class.
Is there some easy way to log messages and avoud this lazy message?
Affects: 4.3.10, 5.0.5
The text was updated successfully, but these errors were encountered: