补充项目快照文件级失败诊断
同步记录失败与待处理文件的相对路径、错误码和脱敏正文
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user