You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by yo...@apache.org on 2025/06/05 12:48:30 UTC
(iotdb) 01/01: finish
This is an automated email from the ASF dual-hosted git repository.
yongzao pushed a commit to branch refactor-ainode-log-path
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 925da6e735818f82e6dce5ffc119dcf83db57763
Author: Yongzao <53...@qq.com>
AuthorDate: Thu Jun 5 20:48:17 2025 +0800
finish
---
iotdb-core/ainode/ainode/core/log.py | 7 ++++---
iotdb-core/ainode/pyproject.toml | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/iotdb-core/ainode/ainode/core/log.py b/iotdb-core/ainode/ainode/core/log.py
index f1fd470a235..06e86e3cfef 100644
--- a/iotdb-core/ainode/ainode/core/log.py
+++ b/iotdb-core/ainode/ainode/core/log.py
@@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
#
+
import inspect
import logging
import multiprocessing
@@ -29,7 +30,7 @@ from ainode.core.constant import (
STD_LEVEL,
)
from ainode.core.util.decorator import singleton
-
+from ainode.core.constant import AINODE_LOG_DIR
class LoggerFilter(logging.Filter):
def filter(self, record):
@@ -76,7 +77,7 @@ class Logger:
_lock: process lock for logger. This is just a precaution, we currently do not have multiprocessing
"""
- def __init__(self, log_dir=None):
+ def __init__(self, log_dir=AINODE_LOG_DIR):
self.logger_format = logging.Formatter(
fmt="%(asctime)s %(levelname)s %(" "message)s", datefmt="%Y-%m-%d %H:%M:%S"
@@ -114,7 +115,7 @@ class Logger:
for file_handler in self.file_handlers:
self.logger.addHandler(file_handler)
else:
- log_dir = "default path"
+ log_dir = "None"
self.logger.addFilter(LoggerFilter())
self._lock = threading.Lock()
diff --git a/iotdb-core/ainode/pyproject.toml b/iotdb-core/ainode/pyproject.toml
index e8cacb42a9f..5b0d02f466e 100644
--- a/iotdb-core/ainode/pyproject.toml
+++ b/iotdb-core/ainode/pyproject.toml
@@ -21,7 +21,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "apache-iotdb-ainode"
-version = "2.0.4.dev"
+version = "2.0.5.dev"
description = "Apache IoTDB AINode"
readme = "README.md"
authors = ["Apache Software Foundation <de...@iotdb.apache.org>"]