@@ -0,0 +1,311 @@
+'''%0ACreated on Aug 11, 2010%0A%0A@author: jnaous%0A'''%0A%0Aimport logging%0A%0Alogger = logging.getLogger(%22exceptionprinter%22)%0A%0Aclass ExceptionPrinter(object):%0A    def process_exception(self, request, exception):%0A        logger.error(%22Got exception %25s of type %25s%22%0A                     %25 (exception, type(exception)))%0A        

add exception middleware to pront exceptions that might not otherwise be printed.