[AMQ-6432] improve the logging to see the current offset

This commit is contained in:
gtully 2017-02-02 12:14:17 +00:00
parent 83511c96e5
commit e3b529129a
1 changed files with 2 additions and 2 deletions

View File

@ -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;