smartbetter opened a new issue, #21764:
URL: https://github.com/apache/shardingsphere/issues/21764

   I don't need a SQLStatement, SQLStatement prints too much.
   
   Can you add a switch to the SQLStatement of SQLLogger to control whether to 
print? For example:
   
   `
   public final class SQLLogger {
   
       public static void logSQL(final QueryContext queryContext, final boolean 
showSQLStatement, final boolean showSimple, final ExecutionContext 
executionContext) {
           log("Logic SQL: {}", queryContext.getSql());
           if (showSQLStatement){
               log("SQLStatement: {}", 
queryContext.getSqlStatementContext().getSqlStatement());
           }
           if (showSimple) {
               logSimpleMode(executionContext.getExecutionUnits());
           } else {
               logNormalMode(executionContext.getExecutionUnits());
           }
       }
       ...
   }
   `


-- 
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.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to