Skip to content

Commit

Permalink
Merge pull request #7805 from piny940/fix-backuplog-error
Browse files Browse the repository at this point in the history
Fix backup log to show error string, not index
  • Loading branch information
blackpiglet authored May 21, 2024
2 parents 5943d38 + 059effc commit 49eab81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/unreleased/7805-piny940
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix backup log to show error string, not index
2 changes: 1 addition & 1 deletion pkg/controller/backup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ func (b *backupReconciler) runBackup(backup *pkgbackup.Request) error {
// Completed yet.
inProgressOperations, _, opsCompleted, opsFailed, errs := getBackupItemOperationProgress(backup.Backup, pluginManager, *backup.GetItemOperationsList())
if len(errs) > 0 {
for err := range errs {
for _, err := range errs {
backupLog.Error(err)
}
}
Expand Down

0 comments on commit 49eab81

Please sign in to comment.