Skip to content

Commit 0bbd55b

Browse files
author
Daniel Bustamante Ospina
committed
Log stack trace on message error
1 parent 74d0bd4 commit 0bbd55b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

async/async-commons/src/main/java/org/reactivecommons/async/impl/listeners/GenericMessageListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private Flux<AcknowledgableDelivery> consumeFaultTolerant(Flux<AcknowledgableDel
118118
protected void logError(Throwable err, AcknowledgableDelivery msj, FallbackStrategy strategy) {
119119
String messageID = msj.getProperties().getMessageId();
120120
try {
121-
log.log(Level.SEVERE, format("Error encounter while processing message %s: %s", messageID, err.toString()));
121+
log.log(Level.SEVERE, format("Error encounter while processing message %s: %s", messageID, err.toString()), err);
122122
log.warning(format("Message %s Headers: %s", messageID, msj.getProperties().getHeaders().toString()));
123123
log.warning(format("Message %s Body: %s", messageID, new String(msj.getBody())));
124124
} catch (Exception e) {

0 commit comments

Comments
 (0)