wuyunfeng opened a new issue #3346: [LOG] LOG.debug should wrapped by 
LOG.LOG.isDebugEnabled()
URL: https://github.com/apache/incubator-doris/issues/3346
 
 
   Example:
   org.apache.doris.qe.Coordinator#exec()
   ```
           if (!scanNodes.isEmpty()) {
               LOG.debug("debug: in Coordinator::exec. query id: {}, planNode: 
{}",
                       DebugUtil.printId(queryId), 
scanNodes.get(0).treeToThrift());
           }
   
           if (!fragments.isEmpty()) {
               LOG.debug("debug: in Coordinator::exec. query id: {}, fragment: 
{}",
                       DebugUtil.printId(queryId), fragments.get(0).toThrift());
           }
   ```
   all PlanNode#treeToThrift() invoked many times by LOG.debug

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to