From c5848764a9d5423f9068ecb4352060516154a82d Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 26 Jun 2012 00:05:38 -0400 Subject: Removes utils.logging_error (no longer used) Change-Id: Iea03d4a87452af3fe1bfb8bd5359bcd17fb561be --- nova/utils.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/nova/utils.py b/nova/utils.py index 3a74e1b98..2f05229b5 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -1040,19 +1040,6 @@ def generate_image_url(image_ref): return "%s/images/%s" % (generate_glance_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. -- cgit