forked from mystiq/dex
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)
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue