summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-01-07 12:41:21 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-01-07 13:39:36 +0100
commit764b095792f2d3e12848bef4742e0d14d5d8d5ba (patch)
treeeee93cec6933725367e4bd2dc73d877288454370
parent6fb017e4c55c92c2e6d99d81fecaebe5a4e4db34 (diff)
Print traceback as debug during cloudify tries
The traceback is printed as debug to avoid priting the first unsuccessful tries in console. It will ease debugging issues as for [1] [1] https://gerrit.opnfv.org/gerrit/#/c/66253/ Change-Id: I89992ea4452b24788cc06dec4c384a263b704efb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 9ba1fe31f31a3381eef29d820c688feb2c51a7cb)
-rw-r--r--functest/core/cloudify.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/functest/core/cloudify.py b/functest/core/cloudify.py
index daa63e623..47d1f4e25 100644
--- a/functest/core/cloudify.py
+++ b/functest/core/cloudify.py
@@ -13,6 +13,7 @@ from __future__ import division
import logging
import time
+import traceback
from cloudify_rest_client import CloudifyClient
from cloudify_rest_client.executions import Execution
@@ -75,8 +76,9 @@ class Cloudify(singlevm.SingleVm2):
self.__logger.info("Secrets API successfully reached")
break
except Exception: # pylint: disable=broad-except
- self.__logger.info(
- "try %s: Cloudify Manager isn't up and running", loop + 1)
+ self.__logger.debug(
+ "try %s: Cloudify Manager isn't up and running \n%s",
+ loop + 1, traceback.format_exc())
time.sleep(30)
else:
self.__logger.error("Cloudify Manager isn't up and running")