This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
"""Traces Web2py requests and logs those that last for longer than the configured threshold | |
The status of the request is displayed in the log output. | |
This module is very handy to identify stuck request handler threads and bottlenecks. | |
As of now, it has only been tested on Python 2.7.18. | |
Setup: | |
- Place this file in the "site-packages" subdirectory of Web2py. | |
- Create the file "routes.py" at the root of Web2py, if it does not exist. |