From 75a4162a36a32d0247f29860c2d74c9fb03d91a4 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 14 Mar 2017 09:50:19 -0400 Subject: [PATCH] NO-JIRA: logger on Exception --- .../activemq/artemis/core/journal/impl/JournalCompactor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java index c62b27bac7..1ac5676133 100644 --- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java +++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java @@ -40,9 +40,12 @@ import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalDeleteRec import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalInternalRecord; import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalRollbackRecordTX; import org.apache.activemq.artemis.journal.ActiveMQJournalLogger; +import org.jboss.logging.Logger; public class JournalCompactor extends AbstractJournalUpdateTask implements JournalRecordProvider { + private static final Logger logger = Logger.getLogger(JournalCompactor.class); + // We try to separate old record from new ones when doing the compacting // this is a split line // We will force a moveNextFiles when the compactCount is bellow than COMPACT_SPLIT_LINE @@ -241,6 +244,7 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ try { command.execute(); } catch (Exception e) { + logger.warn(e.getMessage(), e); ActiveMQJournalLogger.LOGGER.errorReplayingCommands(e); } }