From 3dbf51cd40287b65627a08e3aa306d9f437fc68c Mon Sep 17 00:00:00 2001 From: gufengc Date: Thu, 13 Nov 2025 12:58:19 +0800 Subject: [PATCH] chore(lattica): show lattica log in debug mode --- src/parallax_utils/logging_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parallax_utils/logging_config.py b/src/parallax_utils/logging_config.py index f4b49c0e..7cb7f799 100644 --- a/src/parallax_utils/logging_config.py +++ b/src/parallax_utils/logging_config.py @@ -1,6 +1,7 @@ """Logging configuration for Parallax.""" import logging +import os import sys import threading from typing import Optional @@ -99,6 +100,8 @@ def set_log_level(level_name: str): """Set the root logger level.""" _initialize_if_necessary() logging.getLogger().setLevel(level_name.upper()) + if level_name.upper() == "DEBUG": + os.environ["RUST_LOG"] = "info" def get_logger(name: Optional[str] = None) -> logging.Logger: