Merge "Allow seeing full token response when debug enabled"

This commit is contained in:
Jenkins
2016-03-28 14:56:23 +00:00
committed by Gerrit Code Review

View File

@@ -11,6 +11,7 @@
# under the License. # under the License.
import abc import abc
import json
import logging import logging
from oslo_config import cfg from oslo_config import cfg
@@ -190,6 +191,7 @@ class Auth(BaseAuth):
authenticated=False, log=False, **rkwargs) authenticated=False, log=False, **rkwargs)
try: try:
_logger.debug(json.dumps(resp.json()))
resp_data = resp.json()['token'] resp_data = resp.json()['token']
except (KeyError, ValueError): except (KeyError, ValueError):
raise exceptions.InvalidResponse(response=resp) raise exceptions.InvalidResponse(response=resp)