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

yongzao 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 313a91ecf59 [AINode] Enable log record by default (#15654)
313a91ecf59 is described below

commit 313a91ecf599a2a5df3324ef10b0da19168a3a41
Author: Yongzao <[email protected]>
AuthorDate: Fri Jun 6 14:20:48 2025 +0800

    [AINode] Enable log record by default (#15654)
---
 iotdb-core/ainode/ainode/core/log.py | 6 ++++--
 iotdb-core/ainode/pyproject.toml     | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/iotdb-core/ainode/ainode/core/log.py 
b/iotdb-core/ainode/ainode/core/log.py
index f1fd470a235..4e5d426a20e 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
@@ -24,6 +25,7 @@ import sys
 import threading
 
 from ainode.core.constant import (
+    AINODE_LOG_DIR,
     AINODE_LOG_FILE_LEVELS,
     AINODE_LOG_FILE_NAMES,
     STD_LEVEL,
@@ -76,7 +78,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 +116,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 <[email protected]>"]

Reply via email to