You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2020/12/14 09:25:04 UTC

[iotdb] branch NullPointerLogWay created (now 89da037)

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

jackietien pushed a change to branch NullPointerLogWay
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 89da037  change null pointer log way

This branch includes the following new commits:

     new 89da037  change null pointer log way

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.



[iotdb] 01/01: change null pointer log way

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch NullPointerLogWay
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 89da0379619a77b802a54a7c277d0303952f7be1
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Mon Dec 14 17:24:33 2020 +0800

    change null pointer log way
---
 server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java b/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
index 7368393..6e75bfb 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
@@ -772,9 +772,10 @@ public class TSServiceImpl implements TSIService.Iface, ServerContext {
 
       return resp;
     } catch (Exception e) {
-      logger.warn("{}: Internal server error: ", IoTDBConstant.GLOBAL_DB_NAME, e);
       if (e instanceof NullPointerException) {
-        e.printStackTrace();
+        logger.error("{}: Internal server error: ", IoTDBConstant.GLOBAL_DB_NAME, e);
+      } else {
+        logger.warn("{}: Internal server error: ", IoTDBConstant.GLOBAL_DB_NAME, e);
       }
       if (queryId != -1) {
         try {