From 2c3c7c561ca251cdd8d7814fe11a78ffde419c68 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 6 Feb 2018 14:42:52 +0100 Subject: [PATCH] gunicorn: update config to present consistent pre and post logs. --- configs/gunicorn_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/gunicorn_config.py b/configs/gunicorn_config.py index 60f2a156..5ed0db5c 100644 --- a/configs/gunicorn_config.py +++ b/configs/gunicorn_config.py @@ -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):