Mark Gius a46df8dbbe Totally out of band diff of improve_logging_again
improves logging in dashboard, mostly error logging.
Some informational and debugging
2011-06-28 11:29:29 -07:00

10 lines
303 B
Python

import logging
LOG = logging.getLogger('openstack_dashboard')
class DashboardLogUnhandledExceptionsMiddleware(object):
def process_exception(self, request, exception):
LOG.critical('Unhandled Exception in of type "%s" in dashboard.'
% type(exception), exc_info=True)