From 9963fb7ff4d4f299c1cccf49c39aebd201c1abf3 Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 17 Feb 2025 11:37:38 +0800 Subject: [PATCH] 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 --- lightrag/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/utils.py b/lightrag/utils.py index 5eb82f66..f51f3640 100644 --- a/lightrag/utils.py +++ b/lightrag/utils.py @@ -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):