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

(cherry picked from commit e3b529129a)
This commit is contained in:
gtully 2017-02-02 12:14:17 +00:00 committed by Christopher L. Shannon (cshannon)
parent fb2063d177
commit 3a848971ff
1 changed files with 2 additions and 2 deletions

View File

@ -2101,9 +2101,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;