Avoid creating a Throwable in case of non-trace logging
This commit is contained in:
saivr1t 2018-05-14 15:11:10 +03:00
parent b8cfab97db
commit 2a95348182
1 changed files with 3 additions and 1 deletions

View File

@ -950,7 +950,9 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
@Override
public void afterRollback() throws Exception {
if (LOG.isTraceEnabled()) {
LOG.trace("rollback {}", ack, new Throwable("here"));
}
// ensure we don't filter this as a duplicate
connection.rollbackDuplicate(ActiveMQSession.this, md.getMessage());