Fix Sdc controller
[clamp.git] / src / main / java / org / onap / clamp / clds / sdc / controller / SdcSingleController.java
index 3421ee9..9cad683 100644 (file)
@@ -145,7 +145,7 @@ public class SdcSingleController {
      *             If there is an issue with the parameters provided\r
      */\r
     public void initSdc() throws SdcControllerException {\r
-        logger.info("Attempt to initialize the SDC Controller");\r
+        logger.info("Attempt to initialize the SDC Controller: " + sdcConfig.getSdcControllerName());\r
         if (this.getControllerStatus() != SdcSingleControllerStatus.STOPPED) {\r
             throw new SdcControllerException("The controller is already initialized, call the closeSDC method first");\r
         }\r
@@ -159,6 +159,8 @@ public class SdcSingleController {
             throw new SdcControllerException("Initialization of the SDC Controller failed with reason: "\r
                     + result.getDistributionMessageResult());\r
         }\r
+        logger.info("SDC Controller successfully initialized: " + sdcConfig.getSdcControllerName());\r
+        logger.info("Attempt to start the SDC Controller: " + sdcConfig.getSdcControllerName());\r
         result = this.distributionClient.start();\r
         if (!result.getDistributionActionResult().equals(DistributionActionResultEnum.SUCCESS)) {\r
             logger.error("SDC distribution client start failed with reason:" + result.getDistributionMessageResult());\r
@@ -166,6 +168,7 @@ public class SdcSingleController {
             throw new SdcControllerException(\r
                     "Startup of the SDC Controller failed with reason: " + result.getDistributionMessageResult());\r
         }\r
+        logger.info("SDC Controller successfully started: " + sdcConfig.getSdcControllerName());\r
         this.changeControllerStatus(SdcSingleControllerStatus.IDLE);\r
     }\r
 \r