maint:Don't translate debug level logs

Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This helps to prioritize log
translation.
There were some commits that fixed it but ignored the the style like
msg = _('this is debug info'); LOG.debug(msg)
This commit fixes this style of LOG.debug.

Change-Id: I2cc3fe563456ba0906f74262ab1ba6967301d6d1
This commit is contained in:
ChangBo Guo(gcb)
2014-07-28 16:23:59 +08:00
parent a7e1433a79
commit edec3e1b77
10 changed files with 37 additions and 38 deletions

View File

@@ -103,10 +103,12 @@ class API(object):
@param service: the parameter can be used for notifications about
disconnect mode and update some internals
"""
msg = _('Join new ServiceGroup member %(member_id)s to the '
'%(group_id)s group, service = %(service)s')
LOG.debug(msg, {'member_id': member_id, 'group_id': group_id,
'service': service})
LOG.debug('Join new ServiceGroup member %(member_id)s to the '
'%(group_id)s group, service = %(service)s',
{'member_id': member_id,
'group_id': group_id,
'service': service})
return self._driver.join(member_id, group_id, service)
def service_is_up(self, member):
@@ -119,9 +121,9 @@ class API(object):
"""Explicitly remove the given member from the ServiceGroup
monitoring.
"""
msg = _('Explicitly remove the given member %(member_id)s from the'
'%(group_id)s group monitoring')
LOG.debug(msg, {'member_id': member_id, 'group_id': group_id})
LOG.debug('Explicitly remove the given member %(member_id)s from the'
'%(group_id)s group monitoring',
{'member_id': member_id, 'group_id': group_id})
return self._driver.leave(member_id, group_id)
def get_all(self, group_id):