disable gunicorn access logs

they're turning up in syslog, which means they're getting into kibana now

also move config settings from manifest to gunicorn_config.py
This commit is contained in:
Leo Hemsted
2018-06-25 11:23:51 +01:00
parent 3495c4ca3a
commit cc3b2f1ab9
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