Fixed pep8 errors

This commit is contained in:
Ilya Alekseyev 2011-01-28 20:46:46 +03:00
parent af343a09b6
commit 5850b1505c

View File

@ -192,9 +192,11 @@ class NovaLogger(logging.Logger):
kwargs.pop('exc_info')
self.error(message, **kwargs)
def handle_exception(type, value, tb):
logging.root.critical(str(value), exc_info=(type, value, tb))
sys.excepthook = handle_exception
logging.setLoggerClass(NovaLogger)