Fix debug message formatting in server_external_events

Hopefully this will be the last case of invalid debug log messages to
fix before turning on debug level log messages on during unit tests, so
we can gate on issues like this.

Change-Id: I8a2b64222deaf5320bcc2e5215b6bd46565a505f
This commit is contained in:
Joe Gordon 2014-03-07 12:23:37 -08:00
parent 1c6898efec
commit 50609d1398
2 changed files with 4 additions and 2 deletions

View File

@ -109,7 +109,8 @@ class ServerExternalEventsController(wsgi.Controller):
instances[event.instance_uuid] = instance
except exception.InstanceNotFound:
LOG.debug(_('Dropping event %(name)s:%(tag)s for unknown '
'instance %(instance_uuid)s'), event)
'instance %(instance_uuid)s'),
dict(event.iteritems()))
_event['status'] = 'failed'
_event['code'] = 404
result = 207

View File

@ -82,7 +82,8 @@ class ServerExternalEventsController(wsgi.Controller):
instances[event.instance_uuid] = instance
except exception.InstanceNotFound:
LOG.debug(_('Dropping event %(name)s:%(tag)s for unknown '
'instance %(server_uuid)s'), _event)
'instance %(instance_uuid)s'),
dict(event.iteritems()))
_event['status'] = 'failed'
_event['code'] = 404
result = 207