From 493b57fb04d86bbe99fb562e8379f9ead9ceeb5e Mon Sep 17 00:00:00 2001 From: Jakub Dudycz Date: Wed, 24 Jan 2018 18:29:35 +0100 Subject: Logging exceptions in ArtifactHandlerProvider Update Change-Id: I4214b99b84f951a6b508ff40d599585a092467f5 Issue-ID: APPC-495 Signed-off-by: Jakub Dudycz --- .../org/onap/appc/artifact/handler/ArtifactHandlerProvider.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'appc-inbound/appc-artifact-handler/provider') 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 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); } } -- cgit 1.2.3-korg