Merge "Print traceback in logs for cluster operations"

This commit is contained in:
Jenkins 2015-05-28 03:58:53 +00:00 committed by Gerrit Code Review
commit 559408ba60

View File

@ -170,7 +170,7 @@ def ops_error_handler(description):
return return
msg = six.text_type(ex) msg = six.text_type(ex)
LOG.error(_LE("Error during operating on cluster (reason: " LOG.exception(_LE("Error during operating on cluster (reason: "
"{reason})").format(reason=msg)) "{reason})").format(reason=msg))
try: try:
@ -189,7 +189,7 @@ def ops_error_handler(description):
" Canceling current operation.") " Canceling current operation.")
return return
LOG.error( LOG.exception(
_LE("Error during rollback of cluster (reason:" _LE("Error during rollback of cluster (reason:"
" {reason})").format(reason=six.text_type(rex))) " {reason})").format(reason=six.text_type(rex)))
desc = "{0}, {1}".format(msg, six.text_type(rex)) desc = "{0}, {1}".format(msg, six.text_type(rex))