Skip to content

Commit adc4fc1

Browse files
authored
chore(lattica): show lattica log in debug mode (#231)
1 parent 0145e9c commit adc4fc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parallax_utils/logging_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Logging configuration for Parallax."""
22

33
import logging
4+
import os
45
import sys
56
import threading
67
from typing import Optional
@@ -99,6 +100,8 @@ def set_log_level(level_name: str):
99100
"""Set the root logger level."""
100101
_initialize_if_necessary()
101102
logging.getLogger().setLevel(level_name.upper())
103+
if level_name.upper() == "DEBUG":
104+
os.environ["RUST_LOG"] = "info"
102105

103106

104107
def get_logger(name: Optional[str] = None) -> logging.Logger:

0 commit comments

Comments
 (0)