mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix LogRecord pre-formatting, closes #2801
This commit is contained in:
parent
a7ead9831e
commit
0b5c4aea99
@ -836,7 +836,7 @@ The callable needs to accept a single instance variable for the Arbiter.
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def pre_request(worker, req):
|
def pre_request(worker, req):
|
||||||
worker.log.debug("%s %s" % (req.method, req.path))
|
worker.log.debug("%s %s", req.method, req.path)
|
||||||
|
|
||||||
Called just before a worker processes the request.
|
Called just before a worker processes the request.
|
||||||
|
|
||||||
|
|||||||
@ -1906,7 +1906,7 @@ class PreRequest(Setting):
|
|||||||
type = callable
|
type = callable
|
||||||
|
|
||||||
def pre_request(worker, req):
|
def pre_request(worker, req):
|
||||||
worker.log.debug("%s %s" % (req.method, req.path))
|
worker.log.debug("%s %s", req.method, req.path)
|
||||||
default = staticmethod(pre_request)
|
default = staticmethod(pre_request)
|
||||||
desc = """\
|
desc = """\
|
||||||
Called just before a worker processes the request.
|
Called just before a worker processes the request.
|
||||||
|
|||||||
@ -110,7 +110,7 @@ class GeventWorker(AsyncWorker):
|
|||||||
gevent.sleep(1.0)
|
gevent.sleep(1.0)
|
||||||
|
|
||||||
# Force kill all active the handlers
|
# Force kill all active the handlers
|
||||||
self.log.warning("Worker graceful timeout (pid:%s)" % self.pid)
|
self.log.warning("Worker graceful timeout (pid:%s)", self.pid)
|
||||||
for server in servers:
|
for server in servers:
|
||||||
server.stop(timeout=1)
|
server.stop(timeout=1)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user