mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
don't display logs. fix from @davisp.
This commit is contained in:
parent
36706c208f
commit
764d81b742
@ -15,6 +15,10 @@ from gevent import wsgi
|
||||
import gunicorn
|
||||
from gunicorn.workers.base import Worker
|
||||
|
||||
class WSGIHandler(wsgi.WSGIHandler):
|
||||
def log_request(self, *args):
|
||||
pass
|
||||
|
||||
class GEvent2Worker(Worker):
|
||||
|
||||
base_env = {
|
||||
@ -33,7 +37,6 @@ class GEvent2Worker(Worker):
|
||||
super(GEvent2Worker, self).__init__(*args, **kwargs)
|
||||
self.worker_connections = self.cfg.worker_connections
|
||||
self.pool = None
|
||||
self.log = None
|
||||
|
||||
@classmethod
|
||||
def setup(cls):
|
||||
@ -44,7 +47,7 @@ class GEvent2Worker(Worker):
|
||||
self.pool.spawn(self.handle, req)
|
||||
|
||||
def handle(self, req):
|
||||
handle = wsgi.WSGIHandler(req)
|
||||
handle = WSGIHandler(req)
|
||||
handle.handle(self)
|
||||
|
||||
def run(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user