Remove log translations

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

Change-Id: I9fe2cdd1901980b06e68c34f98de56875f4cddcd
This commit is contained in:
kavithahr
2017-07-10 11:50:41 +05:30
committed by kavitha h r
parent 2297d62415
commit df536ba753

View File

@@ -14,22 +14,7 @@
See http://docs.openstack.org/developer/oslo.i18n/usage.html
"""
try:
import oslo_i18n
import oslo_i18n
_translators = oslo_i18n.TranslatorFactory(domain='saharaclient')
# The primary translation function using the well-known name "_"
_ = _translators.primary
# Translators for log levels.
#
# The abbreviated names are meant to reflect the usual use of a short
# name like '_'. The "L" is for "log" and the other letter comes from
# the level.
_LI = _translators.log_info
_LW = _translators.log_warning
_LE = _translators.log_error
_LC = _translators.log_critical
except ImportError:
_ = _LI = _LW = _LE = _LC = lambda x: x
_ = oslo_i18n.TranslatorFactory(domain='saharaclient').primary