Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Dec 2, 2024
1 parent 96625f8 commit c763411
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/kotsadmsnapshot/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func CreateInstanceBackup(ctx context.Context, cluster *downstreamtypes.Downstre
}

if len(downstreams) == 0 {
logger.Error(errors.Wrapf(err, "no downstreams found for app %s", a.Slug))
logger.Errorf("No downstreams found for app %s", a.Slug)
continue
}

Expand Down Expand Up @@ -469,12 +469,12 @@ func CreateInstanceBackup(ctx context.Context, cluster *downstreamtypes.Downstre

err = excludeShutdownPodsFromBackup(ctx, clientset, veleroBackup)
if err != nil {
logger.Error(errors.Wrap(err, "failed to exclude shutdown pods from backup"))
logger.Errorf("Failed to exclude shutdown pods from backup: %v", err)
}
if appVeleroBackup != nil {
err = excludeShutdownPodsFromBackup(ctx, clientset, appVeleroBackup)
if err != nil {
logger.Error(errors.Wrap(err, "failed to exclude shutdown pods from application backup"))
logger.Errorf("Failed to exclude shutdown pods from application backup: %v", err)
}
}

Expand Down

0 comments on commit c763411

Please sign in to comment.