Merge "Log terminate_connection exception with traceback"

This commit is contained in:
Jenkins 2016-07-05 22:16:30 +00:00 committed by Gerrit Code Review
commit cc87c5ee74

View File

@ -1428,7 +1428,7 @@ class VolumeManager(manager.SchedulerDependentManager):
except Exception as err:
err_msg = (_('Terminate volume connection failed: %(err)s')
% {'err': six.text_type(err)})
LOG.error(err_msg, resource=volume_ref)
LOG.exception(err_msg, resource=volume_ref)
raise exception.VolumeBackendAPIException(data=err_msg)
LOG.info(_LI("Terminate volume connection completed successfully."),
resource=volume_ref)