]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Set wsgi logger to use __name__
authorJoe Gordon <joe.gordon0@gmail.com>
Tue, 15 Oct 2013 01:46:14 +0000 (18:46 -0700)
committerJoe Gordon <joe.gordon0@gmail.com>
Tue, 15 Oct 2013 23:53:02 +0000 (16:53 -0700)
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

index 972b3998c64d380c4d7d5ba98108d22bbdfc1b14..06e711f7bc52b331295dae83d1d9f40c47ea3cd0 100644 (file)
@@ -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):