~dricottone/apkbuilds

ref: 5ff31d7d8b8eda21faa426c1e4c256b32cff66c5 apkbuilds/src/todo.sr.ht/todo.sr.ht.gunicorn.conf.py -rw-r--r-- 232 bytes
5ff31d7dDominic Ricottone Some further massaging for Alpine v3.20 a month ago
                                                                                
1
2
3
4
5
6
7
8
9
import traceback
import io

def worker_abort(worker):
    debug_info = io.StringIO()
    debug_info.write("Traceback at time of timeout:\n")
    traceback.print_stack(file=debug_info)
    worker.log.critical(debug_info.getvalue())