From 607d4f955508e9d8f425cac64267b3c552770548 Mon Sep 17 00:00:00 2001 From: magicyuan876 <317617749@qq.com> Date: Wed, 4 Dec 2024 08:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84=20-=20=E5=9B=A0=E4=B8=BALightRAG?= =?UTF-8?q?=E7=9A=84=E5=87=A0=E4=B9=8E=E9=83=BD=E6=98=AF=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E7=9A=84utils=E4=B8=AD=E7=9A=84=E5=85=A8=E5=B1=80logger?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=EF=BC=8C=E5=BD=93=E5=A4=9A=E4=B8=AArag?= =?UTF-8?q?=E5=AE=9E=E4=BE=8B=E7=9A=84=E6=97=B6=E5=80=99=E5=B9=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=AE=8C=E5=85=A8=E6=8A=8A=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=B0=E5=AF=B9=E5=BA=94=E7=9A=84working=5Fdir,?= =?UTF-8?q?=E5=B9=B6=E4=B8=94=E5=BA=94=E7=94=A8=E4=B8=AD=E5=88=A0=E9=99=A4?= =?UTF-8?q?working=5Fdir=E6=97=B6=E4=BC=9A=E7=94=B1=E4=BA=8Elogger?= =?UTF-8?q?=E7=9A=84=E5=8F=A5=E6=9F=84=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4?= =?UTF-8?q?=20-=20=E6=AD=A4=E4=BF=AE=E6=94=B9=E7=AE=80=E5=8C=96=E4=BA=86?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6=E7=9A=84=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=86=8D=E4=BE=9D=E8=B5=96=E4=BA=8E=20workin?= =?UTF-8?q?g=5Fdir=20=E5=B1=9E=E6=80=A7=EF=BC=8C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=8B=AC=E7=AB=8B=E4=BA=8Eworking=5Fdir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/lightrag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 6511e61b..9209daca 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -133,7 +133,7 @@ class LightRAG: convert_response_to_json_func: callable = convert_response_to_json def __post_init__(self): - log_file = os.path.join(self.working_dir, "lightrag.log") + log_file = os.path.join("lightrag.log") set_logger(log_file) logger.setLevel(self.log_level)