l.s.w.sigusr1 : module documentation

Part of lp.services.webapp

A SIGUSR1 handler for the Launchpad Web App.

To aid debugging, we install a handler for the SIGUSR1 signal. When received, a summary of the last request, recent OOPS IDs and last executed SQL statement is printed for each thread.

Function sigusr1_handler Log status of running threads in response to SIGUSR1
Function setup_sigusr1 Configure the SIGUSR1 handler. Called at startup.
Function before_traverse Record the request URL (provided that the request has a URL)
Function end_request Record the OOPS ID in the thread, if one occurred.
def sigusr1_handler(signum, frame):
Log status of running threads in response to SIGUSR1
def setup_sigusr1(event):
Configure the SIGUSR1 handler. Called at startup.
def before_traverse(event):
Record the request URL (provided that the request has a URL)
def end_request(event):
Record the OOPS ID in the thread, if one occurred.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.