From 40e0ece7610e4488140a61b6ff215e2e41856969 Mon Sep 17 00:00:00 2001 From: luxin Date: Mon, 29 Jan 2018 10:49:08 +0800 Subject: Log the exception Change-Id: Ie5e8fa43f583d20ba6290377be719febea0b85de Issue-ID: VFC-672 Signed-off-by: luxin --- .../nfvo/resmanagement/common/util/restclient/HttpsRest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ResmanagementService/service/src') diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java index d65bbc4..1ae1ca4 100644 --- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java +++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java @@ -43,6 +43,7 @@ public class HttpsRest extends HttpBaseRest { try { client.start(); } catch(Exception e) { + LOG.error("Exception", e); e.printStackTrace(); } } @@ -167,6 +168,7 @@ public class HttpsRest extends HttpBaseRest { try { client.send(exchange); } catch(IOException e) { + LOG.error("IOException", e); e.printStackTrace(); } try { @@ -187,8 +189,10 @@ public class HttpsRest extends HttpBaseRest { "request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED)); } } catch(InterruptedException e) { + LOG.error("InterruptedException", e); e.printStackTrace(); } catch(UnsupportedEncodingException e) { + LOG.error("UnsupportedEncodingException", e); e.printStackTrace(); } return null; @@ -208,6 +212,7 @@ public class HttpsRest extends HttpBaseRest { try { client.send(exchange); } catch(IOException e) { + LOG.error("IOException", e); e.printStackTrace(); } @@ -229,8 +234,10 @@ public class HttpsRest extends HttpBaseRest { "request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED)); } } catch(InterruptedException e) { + LOG.error("InterruptedException", e); e.printStackTrace(); } catch(UnsupportedEncodingException e) { + LOG.error("UnsupportedEncodingException", e); e.printStackTrace(); } return null; @@ -258,6 +265,7 @@ public class HttpsRest extends HttpBaseRest { try { client.send(exchange); } catch(IOException e) { + LOG.error("IOException", e); e.printStackTrace(); } @@ -279,8 +287,10 @@ public class HttpsRest extends HttpBaseRest { "request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED)); } } catch(InterruptedException e) { + LOG.error("InterruptedException", e); e.printStackTrace(); } catch(UnsupportedEncodingException e) { + LOG.error("InterruptedException", e); e.printStackTrace(); } return null; -- cgit 1.2.3-korg