A Django middleware that logs tracebacks of slow requests.
Project description
Overview
Dogslow is Django watchdog middleware class that logs tracebacks of slow requests.
Installation
Install dogslow:
$ 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.
Configuration
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 = 'errors@atlassian.com' DOGSLOW_EMAIL_FROM = 'no-reply@atlassian.com'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dogslow-0.1.tar.gz
(13.4 kB
view details)
File details
Details for the file dogslow-0.1.tar.gz.
File metadata
- Download URL: dogslow-0.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b89ca033f1a92a74eb8aa4951ec0a0792c131e29361a0170459132139501a4
|
|
| MD5 |
b2076fece98dee7d9eb73587101307dc
|
|
| BLAKE2b-256 |
828469a35dd84e91136e2160ccb98346a2f90837aa3ebcfd567c65af6b23639e
|