summaryrefslogtreecommitdiff
path: root/keystone/common/wsgi.py
diff options
context:
space:
mode:
authorwingwj <wingwj@gmail.com>2017-03-21 14:19:23 +0800
committerDavid Stanek <dstanek@dstanek.com>2017-03-25 18:17:15 +0000
commitca35d003dc013ad22b7edb676b883604e681a615 (patch)
tree8d66330f1c16af4f5b8d21411a45b15fd961ffde /keystone/common/wsgi.py
parent7de0a759e22a48391ce78e0c1fd5cceb16f1a1d8 (diff)
downloadkeystone-ca35d003dc013ad22b7edb676b883604e681a615.tar.gz
Remove log translations in keystone
Log messages are no longer being translated. This removes all use of the _LC, _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 Co-Authored-By: David Stanek <dstanek@dstanek.com> Change-Id: I45862f944107c1b4b73aa4d2fd95940f0b67eb1b
Diffstat (limited to 'keystone/common/wsgi.py')
-rw-r--r--keystone/common/wsgi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py
index 1cdf1e400..75d6aa9e3 100644
--- a/keystone/common/wsgi.py
+++ b/keystone/common/wsgi.py
@@ -41,7 +41,7 @@ from keystone.common import request as request_mod
from keystone.common import utils
import keystone.conf
from keystone import exception
-from keystone.i18n import _, _LI, _LW
+from keystone.i18n import _
from keystone.models import token_model
@@ -104,7 +104,7 @@ def validate_token_bind(context, token_ref):
LOG.info(msg)
raise exception.Unauthorized(msg)
- LOG.info(_LI('Kerberos bind authentication successful'))
+ LOG.info('Kerberos bind authentication successful')
elif bind_mode == 'permissive':
LOG.debug(("Ignoring unknown bind (due to permissive mode): "
@@ -228,8 +228,8 @@ class Application(BaseApplication):
result = method(req, **params)
except exception.Unauthorized as e:
LOG.warning(
- _LW("Authorization failed. %(exception)s from "
- "%(remote_addr)s"),
+ "Authorization failed. %(exception)s from "
+ "%(remote_addr)s",
{'exception': e, 'remote_addr': req.environ['REMOTE_ADDR']})
return render_exception(e,
context=req.context_dict,