Make VERBOSE_DEBUG configurable via environment variable
- Adds environment variable support - Defaults to "false" if not set - Case-insensitive check for "true" - Simplifies debugging configuration - Maintains backward compatibility
This commit is contained in:
parent
4fd1f214c1
commit
9963fb7ff4
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ import tiktoken
|
|||
|
||||
from lightrag.prompt import PROMPTS
|
||||
|
||||
VERBOSE_DEBUG = False
|
||||
VERBOSE_DEBUG = os.getenv("VERBOSE", "false").lower() == "true"
|
||||
|
||||
|
||||
def verbose_debug(msg: str, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue