From 7dfc0888b95249b7a0f6c92e2b7c9212e64a9628 Mon Sep 17 00:00:00 2001 From: Sergey Reshetnyak Date: Fri, 22 May 2015 15:13:18 +0300 Subject: [PATCH] Print traceback in logs for cluster operations Change-Id: I5eba522aac7a9db489e454ba277250470381b51a Closes-bug: #1457862 --- sahara/service/ops.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sahara/service/ops.py b/sahara/service/ops.py index a674f92c..fac4819d 100644 --- a/sahara/service/ops.py +++ b/sahara/service/ops.py @@ -170,8 +170,8 @@ def ops_error_handler(description): return msg = six.text_type(ex) - LOG.error(_LE("Error during operating on cluster (reason: " - "{reason})").format(reason=msg)) + LOG.exception(_LE("Error during operating on cluster (reason: " + "{reason})").format(reason=msg)) try: # trying to rollback @@ -189,7 +189,7 @@ def ops_error_handler(description): " Canceling current operation.") return - LOG.error( + LOG.exception( _LE("Error during rollback of cluster (reason:" " {reason})").format(reason=six.text_type(rex))) desc = "{0}, {1}".format(msg, six.text_type(rex))