mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-10 23:23:27 -05:00
they're turning up in syslog, which means they're getting into kibana now also move config settings from manifest to gunicorn_config.py
16 lines
408 B
Python
16 lines
408 B
Python
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")
|
|
for threadId, stack in sys._current_frames().items():
|
|
worker.log.error(''.join(traceback.format_stack(stack)))
|