mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 09:12:06 -05:00
21 lines
491 B
Python
21 lines
491 B
Python
import sys
|
|
import traceback
|
|
|
|
|
|
def on_starting(server):
|
|
server.log.info("Starting Notifications API")
|
|
|
|
|
|
def worker_abort(worker):
|
|
worker.log.info("worker received ABORT {}".format(worker.pid))
|
|
for threadId, stack in sys._current_frames().items():
|
|
worker.log.error(''.join(traceback.format_stack(stack)))
|
|
|
|
|
|
def on_exit(server):
|
|
server.log.info("Stopping Notifications API")
|
|
|
|
|
|
def worker_int(worker):
|
|
worker.log.info("worker: received SIGINT {}".format(worker.pid))
|