Merge pull request #2126 from alphagov/gunicorn-logs

disable gunicorn access logs
This commit is contained in:
Leo Hemsted
2018-06-25 11:40:23 +01:00
committed by GitHub
2 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,13 @@
import os
import sys
import traceback
workers = 5
worker_class = "eventlet"
errorlog = "/home/vcap/logs/gunicorn_error.log"
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
disable_redirect_access_to_syslog = True
def worker_abort(worker):
worker.log.info("worker received ABORT")

View File

@@ -5,10 +5,6 @@ command: >
scripts/run_app_paas.sh
gunicorn
-c /home/vcap/app/gunicorn_config.py
--error-logfile /home/vcap/logs/gunicorn_error.log
-w 5
-b 0.0.0.0:$PORT
-k eventlet
application
instances: 1