Part of lp.services.webapp
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.|