Reduce log level and improve workspace mismatch message clarity

• Change warning to info level
• Simplify workspace mismatch wording

(cherry picked from commit 6cef8df159)
This commit is contained in:
yangdx 2025-11-18 08:25:21 +08:00 committed by Raphaël MANSUY
parent 0ac858d3e2
commit 1cbe0ba885

View file

@ -665,9 +665,9 @@ class LightRAG:
if default_workspace is None:
set_default_workspace(self.workspace)
elif default_workspace != self.workspace:
logger.warning(
logger.info(
f"Creating LightRAG instance with workspace='{self.workspace}' "
f"but default workspace is already set to '{default_workspace}'."
f"while default workspace is set to '{default_workspace}'"
)
# Auto-initialize pipeline_status for this workspace