From d971f7bed4c95dd7a7a56f1716933e0e69f42f3b Mon Sep 17 00:00:00 2001 From: Julia Bardi <90178898+juliaElastic@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:11:23 +0100 Subject: [PATCH] rollback failure log change to info --- internal/pkg/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/api/api.go b/internal/pkg/api/api.go index 3a8c0c045..34d5ed94d 100644 --- a/internal/pkg/api/api.go +++ b/internal/pkg/api/api.go @@ -45,7 +45,7 @@ func (a *apiServer) AgentEnroll(w http.ResponseWriter, r *http.Request, params A rb := rollback.New(zlog) defer func() { if err != nil { - zlog.Error().Err(err).Msg("perform rollback on enrollment failure") + zlog.Info().Err(err).Msg("perform rollback on enrollment failure") err = rb.Rollback(r.Context()) if err != nil { zlog.Error().Err(err).Msg("rollback error on enrollment failure")