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 2021/12/09 08:19:42 UTC

[iotdb] branch master updated: Fix all client connections are stuck bug caused by logback bug (#4545)

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/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d869fe  Fix all client connections are stuck bug caused by logback bug (#4545)
4d869fe is described below

commit 4d869febea28f5e09fbb95494950f08adaa9e726
Author: Jackie Tien <Ja...@foxmail.com>
AuthorDate: Thu Dec 9 16:19:08 2021 +0800

    Fix all client connections are stuck bug caused by logback bug (#4545)
---
 .../org/apache/iotdb/db/service/basic/BasicServiceProvider.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java b/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java
index cfedf03..8734ccc 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java
@@ -165,12 +165,12 @@ public class BasicServiceProvider {
       openSessionResp.setMessage("Login successfully");
 
       sessionId = sessionManager.requestSessionId(username, zoneId);
-      AUDIT_LOGGER.info("User {} opens Session-{}", username, sessionId);
       LOGGER.info(
-          "{}: Login status: {}. User : {}",
+          "{}: Login status: {}. User : {}, opens Session-{}",
           IoTDBConstant.GLOBAL_DB_NAME,
           openSessionResp.getMessage(),
-          username);
+          username,
+          sessionId);
     } else {
       openSessionResp.setMessage(loginMessage != null ? loginMessage : "Authentication failed.");
       openSessionResp.setCode(TSStatusCode.WRONG_LOGIN_PASSWORD_ERROR.getStatusCode());