From e3b529129a490d760d21692736e7c0dda7e615e2 Mon Sep 17 00:00:00 2001 From: gtully Date: Thu, 2 Feb 2017 12:14:17 +0000 Subject: [PATCH] [AMQ-6432] improve the logging to see the current offset --- .../org/apache/activemq/store/kahadb/MessageDatabase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java index 06e5248c34..6790383378 100644 --- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java +++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java @@ -2104,9 +2104,9 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe try { location = journal.getNextLocation(nextLocation); } catch (IOException e) { - LOG.warn("Failed to load next journal location: {}", e.getMessage()); + LOG.warn("Failed to load next journal location after: {}, reason: {}", nextLocation, e); if (LOG.isDebugEnabled()) { - LOG.debug("Failed to load next journal location", e); + LOG.debug("Failed to load next journal location after: {}", nextLocation, e); } } return location;