Fix log message translator issues
Instead of log.info("xxx") and log.warning("xxx"), we should use log.info(_LI("xxx")) and log.warning(_LW("xxx")) Closes-Bug:1530271 Change-Id: Ia55dcb315ecc1ded9e44d29e215b842667ac8940 Signed-off-by: Yang Li <yang.li@easystack.cn>
This commit is contained in:
parent
9a169c1ec8
commit
592487b7f5
|
@ -83,9 +83,8 @@ class RugCoordinator(object):
|
|||
peers, it fires off an initial rebalance event to the workers
|
||||
so they can seed their hash ring with the current membership.
|
||||
"""
|
||||
LOG.info(
|
||||
'Starting RUG coordinator process for host %s on %s' %
|
||||
(self.host, self.url))
|
||||
LOG.info(_LI('Starting RUG coordinator process for host %s on %s'),
|
||||
self.host, self.url)
|
||||
self._coordinator = tz_coordination.get_coordinator(
|
||||
self.url, self.host)
|
||||
self._coordinator.start()
|
||||
|
|
|
@ -150,7 +150,7 @@ class MetadataProxyHandler(object):
|
|||
elif resp.status == 404:
|
||||
return webob.exc.HTTPNotFound()
|
||||
elif resp.status == 500:
|
||||
msg = _(
|
||||
msg = _LW(
|
||||
'Remote metadata server experienced an internal server error.'
|
||||
)
|
||||
LOG.warning(msg)
|
||||
|
|
Loading…
Reference in New Issue