Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions iotdb-core/ainode/ainode/core/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
#

import inspect
import logging
import multiprocessing
Expand All @@ -24,6 +25,7 @@
import threading

from ainode.core.constant import (
AINODE_LOG_DIR,
AINODE_LOG_FILE_LEVELS,
AINODE_LOG_FILE_NAMES,
STD_LEVEL,
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -114,7 +116,7 @@ def __init__(self, log_dir=None):
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()
Expand Down
2 changes: 1 addition & 1 deletion iotdb-core/ainode/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <dev@iotdb.apache.org>"]
Expand Down
Loading