main
HuangHai 3 weeks ago
parent ab7e191ebf
commit f96c4187d9

@ -26,10 +26,10 @@ def configure_logging():
log_dir = os.getenv("LOG_DIR", os.getcwd()) log_dir = os.getenv("LOG_DIR", os.getcwd())
log_file_path = os.path.abspath( log_file_path = os.path.abspath(
os.path.join(log_dir, "./Logs/lightrag_compatible_demo.log") os.path.join(log_dir, "./Logs/lightrag.log")
) )
print(f"\nLightRAG compatible demo log file: {log_file_path}\n") print(f"\nLightRAG log file: {log_file_path}\n")
os.makedirs(os.path.dirname(log_dir), exist_ok=True) os.makedirs(os.path.dirname(log_dir), exist_ok=True)
log_max_bytes = int(os.getenv("LOG_MAX_BYTES", 10485760)) log_max_bytes = int(os.getenv("LOG_MAX_BYTES", 10485760))

Loading…
Cancel
Save