MaiBot/reload_config_now.py

18 lines
388 B
Python
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/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日志已被屏蔽。")