diff options
author | 2017-09-13 14:34:13 +0530 | |
---|---|---|
committer | 2017-09-13 14:34:13 +0530 | |
commit | d4417ad21173d528eb57e6707baed8c51dca6780 (patch) | |
tree | 95a173f53659ac49382d3d0353c9d80f164cdc92 /dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org | |
parent | d12957af0efa7ea7deb075332be531477238d411 (diff) |
Fix for Sonar critical issues
DCAEGEN2-93
Change-Id: I00e769adc7ed8291b7f31ecc72e3d9e44912db7c
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org')
-rw-r--r-- | dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java index 186e03f..efceae1 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java @@ -134,7 +134,6 @@ public class DcaeCdapServiceProvider extends BasicAdaptorProvider { doSteps(console, i, i.getDeploySteps()); } catch (Exception e) { logger.warn("unable to start CDAP app: " + ManagementServer.object2ref(i)); - e.printStackTrace(); throw new RuntimeException("Unable to start CDAP app: " + ManagementServer.object2ref(i) + " " + e); } @@ -249,14 +248,14 @@ public class DcaeCdapServiceProvider extends BasicAdaptorProvider { try { console.stopFlow(i.getCdapName(), a[0], a[1]); } catch (Exception e) { - e.printStackTrace(); + logger.error("exception: ", e); } } for (String a : i.getAppNames()) { try { console.stopApp(i.getCdapName(), a, null); } catch (Exception e) { - e.printStackTrace(); + logger.error("exception: ", e); } } for (CdapArtifact a : i.getArtifacts()) { @@ -267,7 +266,7 @@ public class DcaeCdapServiceProvider extends BasicAdaptorProvider { console.deleteArtifact(i.getCdapName(), a.getName(), a.getVersion()); } } catch (Exception e) { - e.printStackTrace(); + logger.error("exception: ", e); } } for (CdapApplication a : i.getApps()) { @@ -276,7 +275,7 @@ public class DcaeCdapServiceProvider extends BasicAdaptorProvider { console.deleteApp(i.getCdapName(), a.getName()); console.deleteArtifact(i.getCdapName(), a.getArtifactName(), a.getVersion()); } catch (Exception e) { - e.printStackTrace(); + logger.error("exception: ", e); } } // console.deleteNamespace(i.getCdapName()); @@ -291,14 +290,14 @@ public class DcaeCdapServiceProvider extends BasicAdaptorProvider { try { console.stopApp(i.getCdapName(), a.getName(), null); } catch (Exception e) { - e.printStackTrace(); + logger.error("exception: ", e); } } for (CdapApplication a : i.getApps()) { try { console.stopApp(i.getCdapName(), a.getName(),null); } catch (Exception e) { - e.printStackTrace(); + logger.error("exception: ", e); } } for (String f : i.getFlowNames()) { @@ -308,7 +307,7 @@ public class DcaeCdapServiceProvider extends BasicAdaptorProvider { try { console.stopFlow(i.getCdapName(), a[0], a[1]); } catch (Exception e) { - e.printStackTrace(); + logger.error("exception: ", e); } } for (String w : i.getWorkerNames()) { |