You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/04/18 11:56:55 UTC

[incubator-iotdb] 01/01: set parsing incorrect cmd as tracing level log in ParseDriver; set TsserviceImple failed executing as info leve log

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch degrade_log_level
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit a1c1d8eb4c8a3333b11f174704956e1cc1c16f40
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Thu Apr 18 19:56:11 2019 +0800

    set parsing incorrect cmd as tracing level log in ParseDriver; set TsserviceImple failed executing as info leve log
---
 iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java | 2 +-
 iotdb/src/main/java/org/apache/iotdb/db/sql/parse/ParseDriver.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java b/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
index a68f586..5b24ce3 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
@@ -482,7 +482,7 @@ public class TSServiceImpl implements TSIService.Iface, ServerContext {
         return executeUpdateStatement(physicalPlan);
       }
     } catch (Exception e) {
-      LOGGER.error("meet error while executing statement.", e);
+      LOGGER.info("meet error while executing statement: {}", e.getMessage());
       return getTSExecuteStatementResp(TS_StatusCode.ERROR_STATUS, e.getMessage());
     }
   }
diff --git a/iotdb/src/main/java/org/apache/iotdb/db/sql/parse/ParseDriver.java b/iotdb/src/main/java/org/apache/iotdb/db/sql/parse/ParseDriver.java
index 72fb845..db5891c 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/sql/parse/ParseDriver.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/sql/parse/ParseDriver.java
@@ -97,7 +97,7 @@ public class ParseDriver {
 
       r = parser.statement();
     } catch (RecognitionException e) {
-      LOG.error("meet error while parsing statement.", e);
+      LOG.trace("meet error while parsing statement, {} : {}", command, e.getMessage());
     }
 
     if (lexer.getErrors().isEmpty() && parser.errors.isEmpty()) {