fix: log only errors on refreshing
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
parent
c8ff7ed40a
commit
ad89e01676
1 changed files with 1 additions and 2 deletions
|
@ -66,11 +66,10 @@ func (s *Server) getRefreshTokenFromStorage(clientID string, token *internal.Ref
|
||||||
|
|
||||||
refresh, err := s.storage.GetRefresh(token.RefreshId)
|
refresh, err := s.storage.GetRefresh(token.RefreshId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.logger.Errorf("failed to get refresh token: %v", err)
|
|
||||||
if err != storage.ErrNotFound {
|
if err != storage.ErrNotFound {
|
||||||
|
s.logger.Errorf("failed to get refresh token: %v", err)
|
||||||
return nil, newInternalServerError()
|
return nil, newInternalServerError()
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, invalidErr
|
return nil, invalidErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue