aboutsummaryrefslogtreecommitdiffstats
path: root/appc-client/client-simulator
diff options
context:
space:
mode:
authorburdziak <olaf.burdziakowski@nokia.com>2018-01-26 11:32:31 +0100
committerPatrick Brady <pb071s@att.com>2018-01-26 16:39:51 +0000
commit1afa83f88bd9df438a77a53687f8b1d4f90da34e (patch)
tree7463af80422cdc3079327ae96ff23f369766a3f9 /appc-client/client-simulator
parent78c71089c3134a32dd7c7fb18f1c1a83f2dcab09 (diff)
Fixes in JsonResponseHandler
Change-Id: I4bafbf7083007608d3be6ec0ea4883338752a157 Issue-ID: APPC-537 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'appc-client/client-simulator')
-rw-r--r--appc-client/client-simulator/src/main/java/org/onap/appc/simulator/client/impl/JsonResponseHandler.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/appc-client/client-simulator/src/main/java/org/onap/appc/simulator/client/impl/JsonResponseHandler.java b/appc-client/client-simulator/src/main/java/org/onap/appc/simulator/client/impl/JsonResponseHandler.java
index c19abb2fb..00b22dbaa 100644
--- a/appc-client/client-simulator/src/main/java/org/onap/appc/simulator/client/impl/JsonResponseHandler.java
+++ b/appc-client/client-simulator/src/main/java/org/onap/appc/simulator/client/impl/JsonResponseHandler.java
@@ -58,7 +58,7 @@ public class JsonResponseHandler implements ResponseHandler<Object> {
try {
output = OBJECT_MAPPER.writeValueAsString(response);
} catch (JsonProcessingException e) {
- e.printStackTrace();
+ LOG.error(e.getMessage());
}
LOG.debug("Received response : " + output);
@@ -86,7 +86,6 @@ public class JsonResponseHandler implements ResponseHandler<Object> {
}
} catch (Exception e) {
- e.printStackTrace();
throw new RuntimeException(e);
}
@@ -140,7 +139,7 @@ public class JsonResponseHandler implements ResponseHandler<Object> {
fileWriter.close();
}
} catch (Exception e) {
- e.printStackTrace();
+ LOG.error(e.getMessage());
}
System.out.println("== THR#" +Thread.currentThread().getId()+ " Output file : " + fileName + suffix);
}