summaryrefslogtreecommitdiff
path: root/keystoneclient/httpclient.py
diff options
context:
space:
mode:
authorwingwj <wingwj@gmail.com>2017-03-21 12:55:27 +0800
committerwingwj <wingwj@gmail.com>2017-03-21 14:38:05 +0800
commit1d5774f4983e915f45787e7afd2d290f65cf428c (patch)
tree698ad4790a77991125bebbea3f27d2e3c700afc4 /keystoneclient/httpclient.py
parent5cd7f5c8735544b3faca9763298e3389733a8633 (diff)
downloadpython-keystoneclient-1d5774f4983e915f45787e7afd2d290f65cf428c.tar.gz
Remove log translations in python-keystoneclient
Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: Ia77819cbb133903d20e821bff0c45766b11ef07b
Diffstat (limited to 'keystoneclient/httpclient.py')
-rw-r--r--keystoneclient/httpclient.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/keystoneclient/httpclient.py b/keystoneclient/httpclient.py
index 4d893c3..e6813f3 100644
--- a/keystoneclient/httpclient.py
+++ b/keystoneclient/httpclient.py
@@ -54,7 +54,7 @@ from keystoneclient import access
from keystoneclient.auth import base
from keystoneclient import baseclient
from keystoneclient import exceptions
-from keystoneclient.i18n import _, _LW
+from keystoneclient.i18n import _
from keystoneclient import session as client_session
@@ -393,7 +393,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin):
# keyring setup
if use_keyring and keyring is None:
- _logger.warning(_LW('Failed to load keyring modules.'))
+ _logger.warning('Failed to load keyring modules.')
self.use_keyring = use_keyring and keyring is not None
self.force_new_token = force_new_token
self.stale_duration = stale_duration or access.STALE_TOKEN_DURATION
@@ -633,8 +633,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin):
auth_ref = None
except Exception as e:
auth_ref = None
- _logger.warning(
- _LW('Unable to retrieve token from keyring %s'), e)
+ _logger.warning('Unable to retrieve token from keyring %s', e)
return (keyring_key, auth_ref)
def store_auth_ref_into_keyring(self, keyring_key):
@@ -646,8 +645,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin):
pickle.dumps(self.auth_ref)) # nosec
# (cjschaef): see bug 1534288
except Exception as e:
- _logger.warning(
- _LW("Failed to store token into keyring %s"), e)
+ _logger.warning("Failed to store token into keyring %s", e)
def _process_management_url(self, region_name):
try: