From 4905c180a5c8056bc74c20a8bbe871b4951d0e68 Mon Sep 17 00:00:00 2001 From: MooreDerek Date: Mon, 16 Dec 2024 15:58:26 +1300 Subject: [PATCH] Only log file contents in debug --- backend/open_webui/retrieval/loaders/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/retrieval/loaders/main.py b/backend/open_webui/retrieval/loaders/main.py index 36f03cbb2..ec9a1a703 100644 --- a/backend/open_webui/retrieval/loaders/main.py +++ b/backend/open_webui/retrieval/loaders/main.py @@ -20,6 +20,7 @@ from langchain_community.document_loaders import ( from langchain_core.documents import Document from open_webui.env import SRC_LOG_LEVELS +logging.basicConfig(stream=sys.stdout, level=GLOBAL_LOG_LEVEL) log = logging.getLogger(__name__) log.setLevel(SRC_LOG_LEVELS["RAG"]) @@ -106,7 +107,7 @@ class TikaLoader: if "Content-Type" in raw_metadata: headers["Content-Type"] = raw_metadata["Content-Type"] - log.info("Tika extracted text: %s", text) + log.debug("Tika extracted text: %s", text) return [Document(page_content=text, metadata=headers)] else: