diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-06-26 21:39:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-06-26 21:39:42 +0000 |
commit | 527477aa9f200a83d18e63db3937d95f6003bd5c (patch) | |
tree | 73161c0902a41813ef7e607c9359969e4476b175 | |
parent | a9aa80afbdd73aa0f9ce320d6dd83a62e4717a3a (diff) | |
parent | c5848764a9d5423f9068ecb4352060516154a82d (diff) | |
download | nova-527477aa9f200a83d18e63db3937d95f6003bd5c.tar.gz nova-527477aa9f200a83d18e63db3937d95f6003bd5c.tar.xz nova-527477aa9f200a83d18e63db3937d95f6003bd5c.zip |
Merge "Removes utils.logging_error (no longer used)"
-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. |