From e00a583c503933c626ec0d2b9332d1a393db3574 Mon Sep 17 00:00:00 2001 From: Forrest <30576607+fspmarshall@users.noreply.github.com> Date: Tue, 22 Aug 2023 11:59:09 -0700 Subject: [PATCH] reduce alert log spam (#30849) --- lib/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth/auth.go b/lib/auth/auth.go index 4231d7eeb120c..bff2843714a45 100644 --- a/lib/auth/auth.go +++ b/lib/auth/auth.go @@ -1097,7 +1097,7 @@ func (a *Server) handleUpgradeEnrollPrompt(ctx context.Context, msg string, shou const alertTTL = time.Minute * 30 if !shouldPrompt { - if err := a.DeleteClusterAlert(ctx, upgradeEnrollAlertID); err != nil { + if err := a.DeleteClusterAlert(ctx, upgradeEnrollAlertID); err != nil && !trace.IsNotFound(err) { log.Warnf("Failed to delete %s alert: %v", upgradeEnrollAlertID, err) } return