Skip to content

Commit

Permalink
autopilot: fix registering alert
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Oct 5, 2023
1 parent e7cafa3 commit e450d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopilot/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (a *accounts) refillWorkerAccounts(w Worker) {
Data: data,
Timestamp: time.Now(),
})
if rerr != nil {
if err != nil {
a.ap.logger.Errorf("failed to register alert: %v", err)
}
} else if err := a.ap.alerts.DismissAlerts(ctx, alertID); err != nil {
Expand Down

0 comments on commit e450d59

Please sign in to comment.