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
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@ -1906,7 +1906,7 @@ class PreRequest(Setting):
|
||||
type = callable
|
||||
|
||||
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)
|
||||
desc = """\
|
||||
Called just before a worker processes the request.
|
||||
|
||||
@ -110,7 +110,7 @@ class GeventWorker(AsyncWorker):
|
||||
gevent.sleep(1.0)
|
||||
|
||||
# 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:
|
||||
server.stop(timeout=1)
|
||||
except Exception:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user