From 7cf5af2098adf534d4b8bc8936817d75db2f5791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E9=80=8A?= Date: Wed, 11 Dec 2024 10:41:12 +0800 Subject: [PATCH] Fix logger --- src/pai_rag/integrations/search/bs4_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pai_rag/integrations/search/bs4_reader.py b/src/pai_rag/integrations/search/bs4_reader.py index a3df3bd8..0ef839f9 100644 --- a/src/pai_rag/integrations/search/bs4_reader.py +++ b/src/pai_rag/integrations/search/bs4_reader.py @@ -145,7 +145,7 @@ async def fetch_url(url): response = await client.get(url) return response except Exception: - logger.warn(f"Fetch {url} failed. Skipping") + logger.warning(f"Fetch {url} failed. Skipping") def fetch_multiple(urls):