Refactor logging setup and simplify Gunicorn configuration
• Move logging setup code to utils.py • Provide setup_logger for standalone LightRAG logger intialization
This commit is contained in:
@@ -266,9 +266,6 @@ class LightRAG:
|
||||
_storages_status: StoragesStatus = field(default=StoragesStatus.NOT_CREATED)
|
||||
|
||||
def __post_init__(self):
|
||||
os.makedirs(os.path.dirname(self.log_file_path), exist_ok=True)
|
||||
logger.info(f"Logger initialized for working directory: {self.working_dir}")
|
||||
|
||||
from lightrag.kg.shared_storage import (
|
||||
initialize_share_data,
|
||||
)
|
||||
|
Reference in New Issue
Block a user