X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=catalog%2Fpub%2Fmsapi%2Fsdc_controller.py;h=505443a37707fa98134a3536b9b5ab139b2b8ef3;hb=d4f87a40133722da489e4ae03825be544a7baca7;hp=c46503f44489d6354525bcbeb4d974051aeadc41;hpb=7a0c2aa47bc5297a7977e7b7d1a362768efa1e17;p=modeling%2Fetsicatalog.git diff --git a/catalog/pub/msapi/sdc_controller.py b/catalog/pub/msapi/sdc_controller.py index c46503f..505443a 100644 --- a/catalog/pub/msapi/sdc_controller.py +++ b/catalog/pub/msapi/sdc_controller.py @@ -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