补充项目快照文件级失败诊断

同步记录失败与待处理文件的相对路径、错误码和脱敏正文
This commit is contained in:
kdletters
2026-10-06 12:11:04 +08:00
parent 2c285fbd99
commit e76fa7e9c2
@@ -373,6 +373,20 @@ async fn sync_project_snapshot_async(
report.failed_files.len(),
pending_files
);
for failure in report
.failed_files
.iter()
.chain(report.pending_files.iter())
{
app_log!(
"project_snapshot.sync.file_detail projectId={} trigger={} path={} code={} detail={}",
report.project_id,
report.trigger,
failure.relative_path,
failure.code,
failure.detail
);
}
Ok(report)
}