Files
notifications-admin/gunicorn_config.py
Athanasios Voutsadakis 79752d2754 Configure gunicorn errorlog
Related: alphagov/notifications-api/pull/1274
2017-09-22 15:41:41 +01:00

9 lines
223 B
Python

import sys
import traceback
def worker_abort(worker):
worker.log.info("worker received ABORT")
for threadId, stack in sys._current_frames().items():
worker.log.info(''.join(traceback.format_stack(stack)))