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:54 UTC

[incubator-iotdb] branch degrade_log_level created (now a1c1d8e)

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

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


      at a1c1d8e  set parsing incorrect cmd as tracing level log in ParseDriver; set TsserviceImple failed executing as info leve log

This branch includes the following new commits:

     new a1c1d8e  set parsing incorrect cmd as tracing level log in ParseDriver; set TsserviceImple failed executing as info leve log

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by hx...@apache.org.
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()) {