gunicorn: update config to present consistent pre and post logs.
This commit is contained in:
parent
f94ac01a59
commit
2c3c7c561c
1 changed files with 2 additions and 1 deletions
|
|
@ -55,6 +55,7 @@ keepalive = 2
|
|||
|
||||
# SERVER MECHANICS
|
||||
# None == system temp dir
|
||||
# worker_tmp_dir is recommended to be set to some tmpfs
|
||||
worker_tmp_dir = None
|
||||
tmp_upload_dir = None
|
||||
|
||||
|
|
@ -121,7 +122,7 @@ def child_exit(server, worker):
|
|||
def pre_request(worker, req):
|
||||
worker.start_time = time.time()
|
||||
worker.log.debug(
|
||||
"GNCRN PRE WORKER: %s %s", req.method, req.path)
|
||||
"GNCRN PRE WORKER [cnt:%s]: %s %s", worker.nr, req.method, req.path)
|
||||
|
||||
|
||||
def post_request(worker, req, environ, resp):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue