Files
Mofox-Core/reload_config_now.py
SengokuCola 91636b82ec fix:ruff
2025-06-12 20:32:18 +08:00

18 lines
388 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
"""
立即重新加载日志配置
"""
import sys
from pathlib import Path
# 添加src目录到路径
src_path = Path(__file__).parent / "src"
sys.path.insert(0, str(src_path))
from common.logger import reload_log_config # noqa: E402
print("🔄 重新加载日志配置...")
reload_log_config()
print("✅ 配置已重新加载faiss日志已被屏蔽。")