aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}