summaryrefslogtreecommitdiffstats
path: root/appc-inbound/appc-artifact-handler/provider/src
diff options
context:
space:
mode:
authorJakub Dudycz <jakub.dudycz@nokia.com>2018-01-24 18:29:35 +0100
committerPatrick Brady <pb071s@att.com>2018-01-25 19:06:13 +0000
commit493b57fb04d86bbe99fb562e8379f9ead9ceeb5e (patch)
treeab725919270f6f1bce7d4953bc52986870e30e1f /appc-inbound/appc-artifact-handler/provider/src
parent88a45de9a71f44cf6845e51ff6da7df69ca17481 (diff)
Logging exceptions in ArtifactHandlerProvider
Update Change-Id: I4214b99b84f951a6b508ff40d599585a092467f5 Issue-ID: APPC-495 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Diffstat (limited to 'appc-inbound/appc-artifact-handler/provider/src')
-rw-r--r--appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java
index 51f286ee7..dc6489dc3 100644
--- a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java
+++ b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java
@@ -92,7 +92,7 @@ public class ArtifactHandlerProvider implements AutoCloseable, ArtifactHandlerSe
try {
ArtifactHandlerProviderUtil.loadProperties();
} catch (Exception e) {
- log.error("Caught Exception while trying to load properties file");
+ log.error("Caught exception while trying to load properties file", e);
}
// Listener for changes to Services tree
@@ -110,11 +110,10 @@ public class ArtifactHandlerProvider implements AutoCloseable, ArtifactHandlerSe
try {
CheckedFuture<Void, TransactionCommitFailedException> checkedFuture = t.submit();
checkedFuture.get();
- log.info("Create Containers succeeded!: ");
+ log.info("Create containers succeeded!");
} catch (InterruptedException | ExecutionException e) {
- log.error("Create Containers Failed: " + e);
- e.printStackTrace();
+ log.error("Create containers failed", e);
}
}