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
This commit is contained in:
parent
8ed9b2c2c0
commit
83ce89f471
@ -199,9 +199,8 @@ class Server(object):
|
|||||||
|
|
||||||
def _run(self, application, socket):
|
def _run(self, application, socket):
|
||||||
"""Start a WSGI server in a new green thread."""
|
"""Start a WSGI server in a new green thread."""
|
||||||
logger = logging.getLogger('eventlet.wsgi.server')
|
|
||||||
eventlet.wsgi.server(socket, application, custom_pool=self.pool,
|
eventlet.wsgi.server(socket, application, custom_pool=self.pool,
|
||||||
log=logging.WritableLogger(logger))
|
log=logging.WritableLogger(LOG))
|
||||||
|
|
||||||
|
|
||||||
class Middleware(object):
|
class Middleware(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user