From a0d7ef8c2c53f99bb799e35be1e62a54892e265a Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Sat, 17 May 2014 14:11:58 +0200 Subject: [PATCH] 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. Change-Id: Ia4de833da457b587f24f31b106802c92d2139af6 --- barbicanclient/client.py | 2 +- barbicanclient/orders.py | 6 +++--- barbicanclient/verifications.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/barbicanclient/client.py b/barbicanclient/client.py index 73561bb5..2d7bc52d 100644 --- a/barbicanclient/client.py +++ b/barbicanclient/client.py @@ -64,7 +64,7 @@ class Client(object): Required when not using auth_plugin. When not provided, the client will try to get this from the auth_plugin. """ - LOG.debug(_("Creating Client object")) + LOG.debug("Creating Client object") self._session = session or requests.Session() self.verify = not insecure diff --git a/barbicanclient/orders.py b/barbicanclient/orders.py index 7b2f3e3a..e2dc01ff 100644 --- a/barbicanclient/orders.py +++ b/barbicanclient/orders.py @@ -83,7 +83,7 @@ class OrderManager(base.BaseEntityManager): format :returns: Order href for the created order """ - LOG.debug(_("Creating order")) + LOG.debug("Creating order") order_dict = {'secret': {}} order_dict['secret']['name'] = name @@ -95,7 +95,7 @@ class OrderManager(base.BaseEntityManager): order_dict['secret']['expiration'] = expiration self._remove_empty_keys(order_dict['secret']) - LOG.debug(_("Request body: {0}").format(order_dict['secret'])) + LOG.debug("Request body: {0}".format(order_dict['secret'])) resp = self.api.post(self.entity, order_dict) return resp['order_ref'] @@ -106,7 +106,7 @@ class OrderManager(base.BaseEntityManager): :param order_ref: The href for the order """ - LOG.debug(_("Getting order - Order href: {0}").format(order_ref)) + LOG.debug("Getting order - Order href: {0}".format(order_ref)) if not order_ref: raise ValueError('order_ref is required.') resp = self.api.get(order_ref) diff --git a/barbicanclient/verifications.py b/barbicanclient/verifications.py index fa1f371d..19ee7f12 100644 --- a/barbicanclient/verifications.py +++ b/barbicanclient/verifications.py @@ -94,7 +94,7 @@ class VerificationManager(base.BaseEntityManager): : with resource can be impersonated :returns: Verification href for the created verification """ - LOG.debug(_("Creating verification")) + LOG.debug("Creating verification") verif_dict = {'resource_type': resource_type, 'resource_ref': resource_ref, @@ -102,7 +102,7 @@ class VerificationManager(base.BaseEntityManager): 'impersonation_allowed': impersonation_allowed} self._remove_empty_keys(verif_dict) - LOG.debug(_("Request body: {0}").format(verif_dict)) + LOG.debug("Request body: {0}".format(verif_dict)) resp = self.api.post(self.entity, verif_dict) return resp['verification_ref'] @@ -113,8 +113,8 @@ class VerificationManager(base.BaseEntityManager): :param verification_ref: The href for the verification instance """ - LOG.debug(_("Getting verification - " - "Verification href: {0}").format(verification_ref)) + LOG.debug("Getting verification - " + "Verification href: {0}".format(verification_ref)) if not verification_ref: raise ValueError('verif_ref is required.') resp = self.api.get(verification_ref)