From ad89e016763b59256803f2fb2d3122f921f35e80 Mon Sep 17 00:00:00 2001 From: "m.nabokikh" Date: Tue, 12 Apr 2022 17:21:35 +0400 Subject: [PATCH] fix: log only errors on refreshing Signed-off-by: m.nabokikh --- server/refreshhandlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/refreshhandlers.go b/server/refreshhandlers.go index a8165300..0c9b1393 100644 --- a/server/refreshhandlers.go +++ b/server/refreshhandlers.go @@ -66,11 +66,10 @@ func (s *Server) getRefreshTokenFromStorage(clientID string, token *internal.Ref refresh, err := s.storage.GetRefresh(token.RefreshId) if err != nil { - s.logger.Errorf("failed to get refresh token: %v", err) if err != storage.ErrNotFound { + s.logger.Errorf("failed to get refresh token: %v", err) return nil, newInternalServerError() } - return nil, invalidErr }