Fixed the log line

Fixed bug #877417

Change-Id: Iddb9a6d4eb798b0f41f0ef1ab01cb02d16d16dbe
This commit is contained in:
Philip Knouff 2012-01-16 17:04:13 -05:00
parent 4979baf61a
commit 7afc12b9a2
2 changed files with 2 additions and 1 deletions

View File

@ -120,6 +120,7 @@ Nirmal Ranganathan <nirmal.ranganathan@rackspace.com>
Ollie Leahy <oliver.leahy@hp.com>
Pádraig Brady <pbrady@redhat.com>
Paul Voccio <paul@openstack.org>
Philip Knouff <philip.knouff@mailtrust.com>
Renuka Apte <renuka.apte@citrix.com>
Ricardo Carrillo Cruz <emaildericky@gmail.com>
Rick Clark <rick@openstack.org>

View File

@ -421,7 +421,7 @@ class Executor(wsgi.Application):
return resp
def _error(self, req, context, code, message):
LOG.error("%s: %s", code, message, context=context)
LOG.error(_('%(code)s: %(message)s') % locals())
resp = webob.Response()
resp.status = 400
resp.headers['Content-Type'] = 'text/xml'