diff options
Diffstat (limited to 'keystoneclient/session.py')
| -rw-r--r-- | keystoneclient/session.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/keystoneclient/session.py b/keystoneclient/session.py index 2501120..9b6d9b7 100644 --- a/keystoneclient/session.py +++ b/keystoneclient/session.py @@ -37,7 +37,10 @@ osprofiler_web = importutils.try_import("osprofiler.web") USER_AGENT = 'python-keystoneclient' -_LOG_CONTENT_TYPES = set(['application/json', 'application/text']) +# NOTE(jamielennox): Clients will likely want to print more than json. Please +# propose a patch if you have a content type you think is reasonable to print +# here and we'll add it to the list as required. +_LOG_CONTENT_TYPES = set(['application/json']) _logger = logging.getLogger(__name__) @@ -233,8 +236,8 @@ class Session(object): text = _remove_service_catalog(response.text) else: text = ('Omitted, Content-Type is set to %s. Only ' - 'application/json and application/text responses ' - 'have their bodies logged.') % content_type + '%s responses have their bodies logged.') + text = text % (content_type, ', '.join(_LOG_CONTENT_TYPES)) string_parts = [ 'RESP:', |
