Fixed pep8 errors
This commit is contained in:
parent
af343a09b6
commit
5850b1505c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user