Merge "Remove log translations"

This commit is contained in:
Jenkins 2017-03-31 04:22:31 +00:00 committed by Gerrit Code Review
commit 6591154488
2 changed files with 2 additions and 13 deletions

View File

@ -22,7 +22,6 @@ from osc_lib import exceptions
from osc_lib import utils
from openstackclient.i18n import _
from openstackclient.i18n import _LE
LOG = logging.getLogger(__name__)
@ -189,7 +188,7 @@ class SetService(command.Command):
cs.disable(parsed_args.host, parsed_args.service)
except Exception:
status = "enabled" if enabled else "disabled"
LOG.error(_LE("Failed to set service status to %s"), status)
LOG.error("Failed to set service status to %s", status)
result += 1
force_down = None
@ -203,7 +202,7 @@ class SetService(command.Command):
force_down=force_down)
except Exception:
state = "down" if force_down else "up"
LOG.error(_LE("Failed to set service state to %s"), state)
LOG.error("Failed to set service state to %s", state)
result += 1
if result > 0:

View File

@ -19,13 +19,3 @@ _translators = oslo_i18n.TranslatorFactory(domain='openstackclient')
# 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