保存更改记录;优化同步作业日志级别

This commit is contained in:
2025-08-21 15:58:34 +08:00
parent 261ee88a4b
commit 89adb4f8a4
5 changed files with 66 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ func SaveEdges(tx *gorm.DB, edges []model.Edge) error {
Columns: []clause.Column{{Name: "macaddr"}},
UpdateAll: true,
}).Create(&batch).Error
if err != nil {
return fmt.Errorf("failed to save edges batch %d-%d: %w", i, end-1, err)
}