From b130dd0a9e449eec9159a2c5dfbbecd867ed95b3 Mon Sep 17 00:00:00 2001 From: shinigami-777 Date: Tue, 15 Oct 2024 10:24:05 +0530 Subject: [PATCH] removed error-logs Signed-off-by: shinigami-777 --- server/models/remote_provider.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/models/remote_provider.go b/server/models/remote_provider.go index 60e2eea932b..6bb4a527e04 100644 --- a/server/models/remote_provider.go +++ b/server/models/remote_provider.go @@ -1671,19 +1671,15 @@ func (l *RemoteProvider) SaveMesheryPattern(tokenString string, pattern *Meshery switch resp.StatusCode { case http.StatusRequestEntityTooLarge: err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s: Design file is too large to upload. Reduce the file size and try again", pattern.Name, l.ProviderName), "", resp.StatusCode) - l.Log.Error(err) return bdr, err case http.StatusUnauthorized: err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s: Unauthorized access. Check your credentials.", pattern.Name, l.ProviderName), "", resp.StatusCode) - l.Log.Error(err) return bdr, err case http.StatusBadRequest: err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s: Bad request. The design might be corrupt.", pattern.Name, l.ProviderName), "", resp.StatusCode) - l.Log.Error(err) return bdr, err default: err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s. Check if the design is valid or undo recent changes.", pattern.Name, l.ProviderName), "", resp.StatusCode) - l.Log.Error(err) return bdr, err } }