You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/22 08:52:17 UTC

[GitHub] [shardingsphere] smartbetter commented on a diff in pull request #22154: Update SQLStatement log level(#21764)

smartbetter commented on code in PR #22154:
URL: https://github.com/apache/shardingsphere/pull/22154#discussion_r1029034329


##########
infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/log/SQLLogger.java:
##########
@@ -44,7 +44,7 @@ public final class SQLLogger {
      */
     public static void logSQL(final QueryContext queryContext, final boolean showSimple, final ExecutionContext executionContext) {
         log("Logic SQL: {}", queryContext.getSql());
-        log("SQLStatement: {}", queryContext.getSqlStatementContext().getSqlStatement());
+        log.debug("SQLStatement: {}", queryContext.getSqlStatementContext().getSqlStatement());

Review Comment:
   > How about move it to `logNormalMode`?
   
   I don't need SQLStatement log, but I need logNormalMode logs. I think SQLStatement log to debug would be better.



-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org