Don't translate debug level logs in objectstore, pci, rdp, servicegroup

Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This is to help prioritize log
translation. Furthermore translation has a performance overhead, even if
the log isn't used (since nova doesn't support lazy translation yet).

Change-Id: I4c8e7365e1e3bae52956249f1c7d97c7729aebc3
This commit is contained in:
Gary Kotton
2014-04-30 03:55:00 -07:00
committed by garyk
parent eac509dcf0
commit e36a8286fd
5 changed files with 14 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ class API(object):
'''
if not cls._driver:
LOG.debug(_('ServiceGroup driver defined as an instance of %s'),
LOG.debug('ServiceGroup driver defined as an instance of %s',
str(CONF.servicegroup_driver))
driver_name = CONF.servicegroup_driver
try:
@@ -126,15 +126,15 @@ class API(object):
def get_all(self, group_id):
"""Returns ALL members of the given group."""
LOG.debug(_('Returns ALL members of the [%s] '
'ServiceGroup'), group_id)
LOG.debug('Returns ALL members of the [%s] '
'ServiceGroup', group_id)
return self._driver.get_all(group_id)
def get_one(self, group_id):
"""Returns one member of the given group. The strategy to select
the member is decided by the driver (e.g. random or round-robin).
"""
LOG.debug(_('Returns one member of the [%s] group'), group_id)
LOG.debug('Returns one member of the [%s] group', group_id)
return self._driver.get_one(group_id)