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:
parent
03567be314
commit
115d6eff64
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue