diff options
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/nova/utils.py b/nova/utils.py index 166e0b4cb..9560c1d18 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -1036,19 +1036,6 @@ def generate_image_url(image_ref): @contextlib.contextmanager -def logging_error(message): - """Catches exception, write message to the log, re-raise. - This is a common refinement of save_and_reraise that writes a specific - message to the log. - """ - try: - yield - except Exception as error: - with excutils.save_and_reraise_exception(): - LOG.exception(message) - - -@contextlib.contextmanager def remove_path_on_error(path): """Protect code that wants to operate on PATH atomically. Any exception will cause PATH to be removed. |