A Django middleware that logs tracebacks of slow requests.
Dogslow is Django watchdog middleware class that logs tracebacks of slow requests.
$ pip install dogslow
Then add if to your list of middleware classes in your Django settings.py file:
MIDDLEWARE_CLASSES = ( 'dogslow.WatchdogMiddleware', ... )
For best results, make it one of the first middlewares that is run.
You can use the following configuration properties in your settings.py file to tune the watchdog:
# Watchdog is enabled by default, to temporarily disable, set to False: DOGSLOW = True # Location where Watchdog stores its log files: DOGSLOW_OUTPUT = '/tmp' # Log requests taking longer than 25 seconds: DOGSLOW_TIMER = 25 # When both specified, emails backtraces: DOGSLOW_EMAIL_TO = 'email@example.com' DOGSLOW_EMAIL_FROM = 'firstname.lastname@example.org'
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size dogslow-0.1.tar.gz (13.4 kB)||File type Source||Python version None||Upload date||Hashes View|