NO-JIRA: logger on Exception

(cherry picked from commit 75a4162a36a32d0247f29860c2d74c9fb03d91a4)
This commit is contained in:
Clebert Suconic 2017-03-14 09:50:19 -04:00
parent 6f96b057d5
commit 655f6beb04

View File

@ -39,9 +39,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
@ -240,6 +243,7 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ
try {
command.execute();
} catch (Exception e) {
logger.warn(e.getMessage(), e);
ActiveMQJournalLogger.LOGGER.errorReplayingCommands(e);
}
}