Anonymous avatar Anonymous committed 41f699d

Disable exception logging temporarily.

Comments (0)

Files changed (2)

requestlog/middleware.py

         log_entry.save()
 
     def process_exception(self, request, exception):
-        exception_type, exception, tb = sys.exc_info()
-        self.report_exception(exception=exception,
-                              exception_type=exception_type,
-                              tb=tb)
+        # exception_type, exception, tb = sys.exc_info()
+        # self.report_exception(exception=exception,
+        #                       exception_type=exception_type,
+        #                       tb=tb)
+        self.report_exception(exception=exception)
         self.log_records(request)
 
     def process_request(self, request):
         # note it.
         if hasattr(request, LOGGING_EXCEPTION):
             exception_type, exception, tb = getattr(request, LOGGING_EXCEPTION)
-            self.report_exception(exception_type=exception_type,
-                                  exception=exception,
-                                  tb=tb)
+            # self.report_exception(exception_type=exception_type,
+            #                       exception=exception,
+            #                       tb=tb)
+            self.report_exception(exception=exception)
         self.log_records(request)
 
         return response

requestlog/util.py

             request = args[request_arg]
             setattr(request, middleware.LOGGING_ENABLE_ATTR, True)
             try:
+                #print e
+                #import traceback
+                #print traceback.format_exception(*sys.exc_info())
                 return f(*args, **kwargs)
             except Exception, e:
                 setattr(request,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.