GeventWebSocketWorker doesn't properly log to stdout/stderr
gunicorn 'app:app' \
--bind '0.0.0.0:8000' \
--workers 1 \
--worker-class geventwebsocket.gunicorn.workers.GeventWebSocketWorker \
--log-level=debug \
--access-logfile="-" \
--error-logfile="-"
gets me no logging output. The application works properly but I'm not getting logs where I expect them to be (stdout, stderr).
gunicorn 'app:app' \
--bind '0.0.0.0:8000' \
--workers 1 \
--worker-class gevent \
--log-level=debug \
--access-logfile="-" \
--error-logfile="-"
gets me some output like the following:
[2018-12-25 10:54:20 -0500] [35885] [DEBUG] GET /
127.0.0.1 - - [25/Dec/2018:10:54:20 -0500] "GET / HTTP/1.1" 200 4653 "-" "curl/7.54.0"
[2018-12-25 10:54:20 -0500] [35885] [DEBUG] Closing connection.
[2018-12-25 10:54:21 -0500] [35885] [DEBUG] GET /socket.io/
127.0.0.1 - - [25/Dec/2018:10:54:21 -0500] "GET /socket.io/?EIO=3&transport=polling&t=1545753261573-181 HTTP/1.1" 200 107 "http://localhost:8000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
[2018-12-25 10:54:21 -0500] [35885] [DEBUG] GET /socket.io/
127.0.0.1 - - [25/Dec/2018:10:54:21 -0500] "GET /socket.io/?EIO=3&transport=polling&t=1545753261573-193 HTTP/1.1" 200 107 "http://localhost:8000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
[2018-12-25 10:54:21 -0500] [35885] [DEBUG] GET /socket.io/
[2018-12-25 10:54:21 -0500] [35885] [DEBUG] GET /socket.io/
[2018-12-25 10:54:22 -0500] [35885] [DEBUG] GET /
127.0.0.1 - - [25/Dec/2018:10:54:22 -0500] "GET / HTTP/1.1" 200 4653 "-" "curl/7.54.0"
[2018-12-25 10:54:22 -0500] [35885] [DEBUG] Closing connection.
[2018-12-25 10:54:24 -0500] [35885] [DEBUG] GET /
127.0.0.1 - - [25/Dec/2018:10:54:24 -0500] "GET / HTTP/1.1" 200 4653 "-" "curl/7.54.0"
[2018-12-25 10:54:24 -0500] [35885] [DEBUG] Closing connection.