summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2014-05-17 14:11:58 +0200
committerChristian Berendt <berendt@b1-systems.de>2014-05-17 14:29:02 +0200
commita0d7ef8c2c53f99bb799e35be1e62a54892e265a (patch)
tree8a87c3307c6c74bbaf14ee0cdee3735fd0180b3a
parent6d6eff37a2bdfbdd293970f161d51b37ad3fa12e (diff)
downloadpython-barbicanclient-a0d7ef8c2c53f99bb799e35be1e62a54892e265a.tar.gz
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
-rw-r--r--barbicanclient/client.py2
-rw-r--r--barbicanclient/orders.py6
-rw-r--r--barbicanclient/verifications.py8
3 files changed, 8 insertions, 8 deletions
diff --git a/barbicanclient/client.py b/barbicanclient/client.py
index 73561bb..2d7bc52 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 7b2f3e3..e2dc01f 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 fa1f371..19ee7f1 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)