summaryrefslogtreecommitdiff
path: root/neutronclient/v2_0
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2014-05-12 18:18:16 +0200
committerChristian Berendt <berendt@b1-systems.de>2014-06-23 10:58:36 +0000
commit73e608d3545f0a4a307b1e89f0f676993318b442 (patch)
treea724ba09dff3ba590b1f0e71cc1a65c8a7b5fd68 /neutronclient/v2_0
parent1bce6e437e2dd1fa5de6fc2ccdd0ee8ac3f44d18 (diff)
downloadpython-neutronclient-73e608d3545f0a4a307b1e89f0f676993318b442.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: I639624cbe64749085654b32ac85596fdae577230
Diffstat (limited to 'neutronclient/v2_0')
-rw-r--r--neutronclient/v2_0/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/neutronclient/v2_0/client.py b/neutronclient/v2_0/client.py
index 7b6b1ce..002f3f2 100644
--- a/neutronclient/v2_0/client.py
+++ b/neutronclient/v2_0/client.py
@@ -1199,7 +1199,7 @@ class Client(object):
def _handle_fault_response(self, status_code, response_body):
# Create exception with HTTP status code and message
- _logger.debug(_("Error message: %s"), response_body)
+ _logger.debug("Error message: %s", response_body)
# Add deserialized error message to exception arguments
try:
des_error_body = self.deserialize(response_body, status_code)
@@ -1301,7 +1301,7 @@ class Client(object):
except exceptions.ConnectionFailed:
# Exception has already been logged by do_request()
if i < self.retries:
- _logger.debug(_('Retrying connection to Neutron service'))
+ _logger.debug('Retrying connection to Neutron service')
time.sleep(self.retry_interval)
raise exceptions.ConnectionFailed(reason=_("Maximum attempts reached"))