summaryrefslogtreecommitdiffstats
path: root/nova/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/log.py')
-rw-r--r--nova/log.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/log.py b/nova/log.py
index 70719e95b..b541488bd 100644
--- a/nova/log.py
+++ b/nova/log.py
@@ -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)