From 6d102bcf0cbacb1d37eec20c4d318e14724a056d Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Wed, 28 Nov 2012 23:33:01 -0500 Subject: Provide i18n to those messages without _() bug 1081498 There are a few log messages without _(), but a lot messages with _(). Wrap these log messages with _() in order to make the code consistent. fix missing imports for _ Pass the log message and interpolation argument(s) to the logger separately remove extra parens rework the patch against latest trunk Change-Id: Ib0a7b0f9c57aadfbc2cfc477c6123b885c9c6060 --- tests/unit/rpc/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/rpc/common.py') diff --git a/tests/unit/rpc/common.py b/tests/unit/rpc/common.py index 5f21328..70a1ad0 100644 --- a/tests/unit/rpc/common.py +++ b/tests/unit/rpc/common.py @@ -150,7 +150,7 @@ class BaseRpcTestCase(test_utils.BaseTestCase): class Nested(object): @staticmethod def put_queue(context, value): - LOG.debug("Got value in put_queue: %s", value) + LOG.debug(_("Got value in put_queue: %s"), value) QUEUE.put(value) nested = Nested() -- cgit