summaryrefslogtreecommitdiff
path: root/keystoneclient/session.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/session.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/session.py')
-rw-r--r--keystoneclient/session.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/keystoneclient/session.py b/keystoneclient/session.py
index 41bb124..1c3f30b 100644
--- a/keystoneclient/session.py
+++ b/keystoneclient/session.py
@@ -31,7 +31,7 @@ import six
from six.moves import urllib
from keystoneclient import exceptions
-from keystoneclient.i18n import _, _LI, _LW
+from keystoneclient.i18n import _
osprofiler_web = importutils.try_import("osprofiler.web")
@@ -451,7 +451,7 @@ class Session(object):
if connect_retries <= 0:
raise
- logger.info(_LI('Failure: %(e)s. Retrying in %(delay).1fs.'),
+ logger.info('Failure: %(e)s. Retrying in %(delay).1fs.',
{'e': e, 'delay': connect_retry_delay})
time.sleep(connect_retry_delay)
@@ -478,8 +478,8 @@ class Session(object):
try:
location = resp.headers['location']
except KeyError:
- logger.warning(_LW("Failed to redirect request to %s as new "
- "location was not provided."), resp.url)
+ logger.warning("Failed to redirect request to %s as new "
+ "location was not provided.", resp.url)
else:
# NOTE(jamielennox): We don't pass through connect_retry_delay.
# This request actually worked so we can reset the delay count.