You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/06/23 09:26:21 UTC

[incubator-iotdb] branch master updated: change audit logger to debug level for insert and create timeseries

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

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


The following commit(s) were added to refs/heads/master by this push:
     new a223fdf  change audit logger to debug level for insert and create timeseries
a223fdf is described below

commit a223fdfc1a0e6ae540ae819253d55b81099a9718
Author: qiaojialin <64...@qq.com>
AuthorDate: Tue Jun 23 17:26:58 2020 +0800

    change audit logger to debug level for insert and create timeseries
---
 server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java | 6 +++---
 1 file changed, 3 insertions(+), 3 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 0d04c59..c9b42ca 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
@@ -1125,7 +1125,7 @@ public class TSServiceImpl implements TSIService.Iface, ServerContext {
   public TSStatus insertRecord(TSInsertRecordReq req) {
     try {
       auditLogger
-          .info("Session {} insertRecord, device {}, time {}", currSessionId.get(),
+          .debug("Session {} insertRecord, device {}, time {}", currSessionId.get(),
               req.getDeviceId(), req.getTimestamp());
       if (!checkLogin(req.getSessionId())) {
         logger.info(INFO_NOT_LOGIN, IoTDBConstant.GLOBAL_DB_NAME);
@@ -1291,7 +1291,7 @@ public class TSServiceImpl implements TSIService.Iface, ServerContext {
       return RpcUtils.getStatus(TSStatusCode.NOT_LOGIN_ERROR);
     }
 
-    auditLogger.info("Session-{} create timeseries {}", currSessionId.get(), req.getPath());
+    auditLogger.debug("Session-{} create timeseries {}", currSessionId.get(), req.getPath());
     TSStatus status = checkPathValidity(req.path);
     if (status != null) {
       return status;
@@ -1314,7 +1314,7 @@ public class TSServiceImpl implements TSIService.Iface, ServerContext {
       logger.info(INFO_NOT_LOGIN, IoTDBConstant.GLOBAL_DB_NAME);
       return RpcUtils.getStatus(TSStatusCode.NOT_LOGIN_ERROR);
     }
-    auditLogger.info("Session-{} create {} timeseries, the first is {}", currSessionId.get(),
+    auditLogger.debug("Session-{} create {} timeseries, the first is {}", currSessionId.get(),
         req.getPaths().size(), req.getPaths().get(0));
     List<TSStatus> statusList = new ArrayList<>(req.paths.size());
     for (int i = 0; i < req.paths.size(); i++) {