Merge "Log level for BaseContextMiddleware should be warn"
This commit is contained in:
commit
3be563029a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user