From 0cc79605a52b899de85b299c15828a3918283972 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Mon, 14 Oct 2013 18:46:14 -0700 Subject: [PATCH] Set wsgi logger to use __name__ Although underneath this is the eventlet.wsgi.server server, Other OpenStack projects, don't use that logger instead they use there own. This will also mean the wsgi server will stop logging on just the warning level. We want wsgi server to at least log on info level so it will log when a request is processed and what the return code is. Change-Id: I96fd73b84b4550f85ad96030fea815376901813a --- neutron/wsgi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neutron/wsgi.py b/neutron/wsgi.py index 972b3998c6..06e711f7bc 100644 --- a/neutron/wsgi.py +++ b/neutron/wsgi.py @@ -199,9 +199,8 @@ class Server(object): def _run(self, application, socket): """Start a WSGI server in a new green thread.""" - logger = logging.getLogger('eventlet.wsgi.server') eventlet.wsgi.server(socket, application, custom_pool=self.pool, - log=logging.WritableLogger(logger)) + log=logging.WritableLogger(LOG)) class Middleware(object):