Log at error when we intend to reraise the exception

This prevents repeated stack traces when errors occur.

Change-Id: I62a92aa791a115da6ca410cc781e40882d58f77a
This commit is contained in:
Tim Burke 2017-01-05 14:32:17 -08:00
parent 03567be314
commit 115d6eff64
1 changed files with 2 additions and 2 deletions

View File

@ -245,8 +245,8 @@ class ImageDataController(object):
except Exception as e:
with excutils.save_and_reraise_exception():
LOG.exception(_LE("Failed to upload image data due to "
"internal error"))
LOG.error(_LE("Failed to upload image data due to "
"internal error"))
self._restore(image_repo, image)
def download(self, req, image_id):