Alexander Savonin created AMQ-6959:
--------------------------------------

             Summary: Avoid creating a Throwable in case of non-trace logging
                 Key: AMQ-6959
                 URL: https://issues.apache.org/jira/browse/AMQ-6959
             Project: ActiveMQ
          Issue Type: Improvement
            Reporter: Alexander Savonin
             Fix For: 5.16.0


We should not create a Throwable object (which will call fillInStackTrace() 
method) in case of non TRACE logging. For example if we have an INFO log level, 
message will not be created and logged, but a Throwable object will be created.

I'm talking about the following method:

org.apache.activemq.transaction.Synchronization#afterRollback
{code:java}
LOG.trace("rollback {}", ack, new Throwable("here")); {code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to