debug level logs should not be translated

According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.

Partial-Bug: #1317950

Change-Id: Ic8b19ec49441e49492ea5c43475fc946e20057fe
This commit is contained in:
Christian Berendt 2014-05-09 12:08:47 +02:00
parent 7b30f94ad8
commit 36cc1d85f0
2 changed files with 6 additions and 6 deletions

View File

@ -83,7 +83,7 @@ class HookManager(object):
obj = extension.obj obj = extension.obj
hook_method = getattr(obj, method_type, None) hook_method = getattr(obj, method_type, None)
if hook_method: if hook_method:
msg = (_("Running %(name)s %(type)s-hook: %(obj)s") % msg = ("Running %(name)s %(type)s-hook: %(obj)s" %
{'name': name, 'type': method_type, 'obj': obj}) {'name': name, 'type': method_type, 'obj': obj})
LOG.debug(msg) LOG.debug(msg)
try: try:

View File

@ -209,7 +209,7 @@ class BaseRpcTestCase(test_base.BaseTestCase):
@staticmethod @staticmethod
def echo(context, queue, value): def echo(context, queue, value):
"""Calls echo in the passed queue.""" """Calls echo in the passed queue."""
LOG.debug(_("Nested received %(queue)s, %(value)s") LOG.debug("Nested received %(queue)s, %(value)s"
% {'queue': queue, 'value': value}) % {'queue': queue, 'value': value})
# TODO(comstud): # TODO(comstud):
# so, it will replay the context and use the same REQID? # so, it will replay the context and use the same REQID?
@ -218,7 +218,7 @@ class BaseRpcTestCase(test_base.BaseTestCase):
queue, queue,
{"method": "echo", {"method": "echo",
"args": {"value": value}}) "args": {"value": value}})
LOG.debug(_("Nested return %s"), ret) LOG.debug("Nested return %s", ret)
return value return value
nested = Nested() nested = Nested()
@ -386,13 +386,13 @@ class TestReceiver(object):
@staticmethod @staticmethod
def echo(context, value): def echo(context, value):
"""Simply returns whatever value is sent in.""" """Simply returns whatever value is sent in."""
LOG.debug(_("Received %s"), value) LOG.debug("Received %s", value)
return value return value
@staticmethod @staticmethod
def synced_echo(context, value, callid): def synced_echo(context, value, callid):
"""Waits on the event identified by callid.""" """Waits on the event identified by callid."""
LOG.debug(_("Received %s"), value) LOG.debug("Received %s", value)
global synced_echo_call global synced_echo_call
synced_echo_call.wait(callid) synced_echo_call.wait(callid)
return value return value
@ -405,7 +405,7 @@ class TestReceiver(object):
@staticmethod @staticmethod
def context(context, value): def context(context, value):
"""Returns dictionary version of context.""" """Returns dictionary version of context."""
LOG.debug(_("Received %s"), context) LOG.debug("Received %s", context)
return context.to_dict() return context.to_dict()
@staticmethod @staticmethod