Merge pull request #212 from bsinno/fix_correlationdata_can_be_null

Fixed problem where correlation data is null.
This commit is contained in:
Kai Zimmermann
2016-06-15 11:35:12 +02:00
committed by GitHub

View File

@@ -135,12 +135,10 @@ public class AmqpConfiguration {
rabbitTemplate.setConfirmCallback((correlationData, ack, cause) -> {
if (ack) {
LOGGER.debug("Message with correlation ID {} confirmed by broker.", correlationData.getId());
LOGGER.debug("Message with {} confirmed by broker.", correlationData);
} else {
LOGGER.error("Broker is unable to handle message with correlation ID {} : {}", correlationData.getId(),
cause);
LOGGER.error("Broker is unable to handle message with {} : {}", correlationData, cause);
}
});
return rabbitTemplate;