From 896d085e8dd45af5ec9c48be675c1b847c1c017e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9D=A6?= Date: Fri, 11 Apr 2025 23:05:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E5=A4=84=E7=90=86=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=97=A5=E5=BF=97=EF=BC=8C=E5=A2=9E=E5=BC=BA=E5=8F=AF?= =?UTF-8?q?=E8=BF=BD=E8=B8=AA=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update_files.py b/update_files.py index 868b277..729d097 100644 --- a/update_files.py +++ b/update_files.py @@ -49,12 +49,14 @@ def process_item(item): os.makedirs(os.path.dirname(abs_file_path), exist_ok=True) updated = False + logging.info(f"📝 检查 {abs_file_path} 是否需要更新") if os.path.exists(abs_file_path): with open(abs_file_path, "r", encoding="utf-8") as f: old_content = f.read() if old_content != new_content: updated = True else: + logging.warning(f"⚠️ 文件 {file_path} 不存在,将创建。") updated = True if updated: