diff options
author | luxin <luxin7@huawei.com> | 2018-01-29 10:49:08 +0800 |
---|---|---|
committer | luxin <luxin7@huawei.com> | 2018-01-29 10:49:08 +0800 |
commit | 40e0ece7610e4488140a61b6ff215e2e41856969 (patch) | |
tree | 1b2ec8568ef56297c40582b46ddf21511b998a70 /ResmanagementService/service | |
parent | 76279833ee47cd5adce575de9e50dd584c8fe672 (diff) |
Log the exception
Change-Id: Ie5e8fa43f583d20ba6290377be719febea0b85de
Issue-ID: VFC-672
Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'ResmanagementService/service')
-rw-r--r-- | ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java | 10 |
1 files changed, 10 insertions, 0 deletions
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; |