X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=catalog%2Fpub%2Fmsapi%2Fsdc_controller.py;h=505443a37707fa98134a3536b9b5ab139b2b8ef3;hb=d4f87a40133722da489e4ae03825be544a7baca7;hp=454f3d1a1db6a582dc88c7c6dcf9b99a72aa2c58;hpb=fddda96911bdb3ec9841ac71e764cb6eb8fa08d5;p=modeling%2Fetsicatalog.git diff --git a/catalog/pub/msapi/sdc_controller.py b/catalog/pub/msapi/sdc_controller.py index 454f3d1..505443a 100644 --- a/catalog/pub/msapi/sdc_controller.py +++ b/catalog/pub/msapi/sdc_controller.py @@ -18,7 +18,7 @@ from catalog.pub.msapi import sdc logger = logging.getLogger(__name__) -DMAAP_MR_BASE_URL = "http://%s:%s" % (DMAAP_MR_IP, DMAAP_MR_PORT) +DMAAP_MR_BASE_URL = "https://%s:%s" % (DMAAP_MR_IP, DMAAP_MR_PORT) ARTIFACT_TYPES_LIST = ["TOSCA_TEMPLATE", "TOSCA_CSAR"] @@ -47,7 +47,7 @@ class SDCController(Thread): self.scheduler.start() except Exception as e: logger.error('start sdc controller failed.') - logger.error(e.message) + logger.error(str(e)) logger.error(traceback.format_exc()) def fetch_notification(self): @@ -62,7 +62,7 @@ class SDCController(Thread): process_notification(notification_callback) except Exception as e: logger.error('fetch message from dmaap failed.') - logger.error(e.message) + logger.error(str(e)) logger.error(traceback.format_exc()) @@ -184,7 +184,7 @@ def send_notification_status(status_topic, now_ms, distribution_id, artifact, is logger.error('failed to send notification status, %s messages unsent', len(stuck)) except Exception as e: logger.error('failed to send notification status.') - logger.error(e.message) + logger.error(str(e)) logger.error(traceback.format_exc()) return status