Merge "Log TokenNotFound at INFO level instead of WARNING"

This commit is contained in:
Zuul 2018-01-05 16:25:13 +00:00 committed by Gerrit Code Review
commit f1f2c4a0c5
1 changed files with 2 additions and 2 deletions

View File

@ -220,8 +220,8 @@ class IdentityServer(object):
user_token,
allow_expired=allow_expired)
except ksa_exceptions.NotFound as e:
self._LOG.warning('Authorization failed for token')
self._LOG.warning('Identity response: %s', e.response.text)
self._LOG.info('Authorization failed for token')
self._LOG.info('Identity response: %s', e.response.text)
raise ksm_exceptions.InvalidToken(_('Token authorization failed'))
except ksa_exceptions.Unauthorized as e:
self._LOG.info('Identity server rejected authorization')