Merge "Log level for BaseContextMiddleware should be warn"

This commit is contained in:
Jenkins 2012-09-01 08:19:30 +00:00 committed by Gerrit Code Review
commit 3be563029a

View File

@ -42,7 +42,7 @@ class BaseContextMiddleware(wsgi.Middleware):
try: try:
request_id = resp.request.context.request_id request_id = resp.request.context.request_id
except AttributeError: except AttributeError:
LOG.error(_('Unable to retrieve request id from context')) LOG.warn(_('Unable to retrieve request id from context'))
else: else:
resp.headers['x-openstack-request-id'] = 'req-%s' % request_id resp.headers['x-openstack-request-id'] = 'req-%s' % request_id
return resp return resp