Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop logging proxied 5XX Graphite errors
This adds what amounts to a dirty hack to the graphite-web proxy view (i.e. it reaches into Django internals) to prevent Django from doing a full error response log when proxying 5xx class errors from graphite-web. It does so by tricking `django.utils.log.log_response()` into thinking that the response has already been logged (since our view function has no other control over how its return values are logged by Django). The reason for the 5xx response codes are not bugs in our view code, and does not need to trigger site admin e-mails.
- Loading branch information