Merge pull request #2470 from flant/refresh-token-log-only-errors
fix: log only errors on refreshing
This commit is contained in:
commit
b26e639515
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)
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue