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: