Public » FogBugz Middleware
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

tip do not log bugs when settings.DEBUG is true

Changeset a15b276d8c41

Parent 9243721f7373

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at a15b276d8c41 Showing diff from parent 9243721f7373 Diff from another changeset...

 
14
15
16
 
 
17
18
19
 
38
39
40
 
 
41
42
43
 
14
15
16
17
18
19
20
21
 
40
41
42
43
44
45
46
47
@@ -14,6 +14,8 @@
  set to send an email on error, it will continue to do so."""     def process_response(self, request, response): + if settings.DEBUG: + return response   if response.status_code == 404:   if settings.FOGBUGZ_REPORT_BROKEN_LINKS:   domain = request.get_host() @@ -38,6 +40,8 @@
  return response     def process_exception(self, request, exception): + if settings.DEBUG: + return   # Do not file 404 errors in FogBugz   if isinstance(exception, Http404):   return