pull/1040/head
SengokuCola 2025-06-12 16:05:28 +08:00
commit 87663d45f2
1 changed files with 5 additions and 4 deletions

View File

@ -113,6 +113,7 @@ def configure_logging(
# 设置日志级别 # 设置日志级别
root_logger.setLevel(getattr(logging, level.upper())) root_logger.setLevel(getattr(logging, level.upper()))
def format_json_for_logging(data, indent=2, ensure_ascii=False): def format_json_for_logging(data, indent=2, ensure_ascii=False):
"""将JSON数据格式化为可读字符串 """将JSON数据格式化为可读字符串