This is an automated email from the ASF dual-hosted git repository. liyuheng pushed a commit to branch lyh/ainode/fix-log-compress in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit a2484af964e1fb131fbdd1ca9cdd0e2a9d9e6ef5 Author: liyuheng <[email protected]> AuthorDate: Mon Sep 8 04:48:30 2025 +0800 done --- iotdb-core/ainode/iotdb/ainode/core/constant.py | 2 +- iotdb-core/ainode/iotdb/ainode/core/log.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iotdb-core/ainode/iotdb/ainode/core/constant.py b/iotdb-core/ainode/iotdb/ainode/core/constant.py index 440f77e1b02..c3c57e30da2 100644 --- a/iotdb-core/ainode/iotdb/ainode/core/constant.py +++ b/iotdb-core/ainode/iotdb/ainode/core/constant.py @@ -71,7 +71,7 @@ AINODE_SYSTEM_DIR = "data/ainode/system" AINODE_LOG_DIR = "logs" # AINode log -LOG_FILE_TYPE = ["all", "info", "warning", "error"] +LOG_FILE_TYPE = ["all", "info", "warn", "error"] AINODE_LOG_FILE_NAME_PREFIX = "log_ainode_" AINODE_LOG_FILE_LEVELS = [logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR] DEFAULT_LOG_LEVEL = logging.INFO diff --git a/iotdb-core/ainode/iotdb/ainode/core/log.py b/iotdb-core/ainode/iotdb/ainode/core/log.py index 4f8ede6a5ac..a7a05d0ea92 100644 --- a/iotdb-core/ainode/iotdb/ainode/core/log.py +++ b/iotdb-core/ainode/iotdb/ainode/core/log.py @@ -95,6 +95,7 @@ class BaseLogger: ) -> str: # to avoid outer variable late binding base, ext = os.path.splitext(internal_file_name) + base = base.replace("_", "-") base_log_dir = os.path.dirname(default_name) suffix = default_name.rsplit(".", 1)[-1] # e.g. 2025-08-01_13-45 digits = re.sub(r"[-_]", "", suffix)
