mirror of https://github.com/apache/activemq.git
AMQ-6959
Avoid creating a Throwable in case of non-trace logging
(cherry picked from commit 2a95348182
)
This commit is contained in:
parent
0bd15a2a3e
commit
20f6c0a035
|
@ -950,7 +950,9 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
|
|||
|
||||
@Override
|
||||
public void afterRollback() throws Exception {
|
||||
LOG.trace("rollback {}", ack, new Throwable("here"));
|
||||
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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue