From: Joe Gordon Date: Tue, 15 Oct 2013 01:46:14 +0000 (-0700) Subject: Set wsgi logger to use __name__ X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=83ce89f471d887ec9e3aa48c26ffe0d88a1957b1;p=openstack-build%2Fneutron-build.git 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 --- diff --git a/neutron/wsgi.py b/neutron/wsgi.py index 972b3998c..06e711f7b 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):