From 3b7b43f8ff8a9860bcc24ad89c0f03df26fb7205 Mon Sep 17 00:00:00 2001 From: isethi Date: Wed, 29 Aug 2012 14:42:09 +0000 Subject: [PATCH] Log level for BaseContextMiddleware should be warn The current log level is error for BaseContextMiddleware. It is toned down to warn in this patch. Fixes bug 1043374 Change-Id: I468183b374f06b0afad3d559fdb2c09ac0663105 --- glance/api/middleware/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glance/api/middleware/context.py b/glance/api/middleware/context.py index 8c870d3bcd..c44bf8cf5f 100644 --- a/glance/api/middleware/context.py +++ b/glance/api/middleware/context.py @@ -42,7 +42,7 @@ class BaseContextMiddleware(wsgi.Middleware): try: request_id = resp.request.context.request_id except AttributeError: - LOG.error(_('Unable to retrieve request id from context')) + LOG.warn(_('Unable to retrieve request id from context')) else: resp.headers['x-openstack-request-id'] = 'req-%s' % request_id return resp