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>
import logging
import time
+import traceback
from cloudify_rest_client import CloudifyClient
from cloudify_rest_client.executions import Execution
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")