From 2fde2294d8fcf536acf640f5840c4e551b9dd433 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Thu, 5 Apr 2012 21:26:10 +0000 Subject: Cleanup xenapi driver logging messages to include instance Also, use the logging instance kwarg so it gets logged in a consistent format. Change-Id: I4429e9660ff72e1f79d889f89b5abbf1949720de --- nova/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/utils.py') diff --git a/nova/utils.py b/nova/utils.py index 8119861c6..65d0c6829 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -1715,7 +1715,7 @@ class UndoManager(object): for undo_func in reversed(self.undo_stack): undo_func() - def rollback_and_reraise(self, msg=None): + def rollback_and_reraise(self, msg=None, **kwargs): """Rollback a series of actions then re-raise the exception. .. note:: (sirp) This should only be called within an @@ -1723,6 +1723,6 @@ class UndoManager(object): """ with save_and_reraise_exception(): if msg: - LOG.exception(msg) + LOG.exception(msg, **kwargs) self._rollback() -- cgit