aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcus Williams <marcus.williams@intel.com>2018-08-24 20:08:58 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-24 20:08:58 +0000
commit83c158371384b29a4252d12d842ab632a93209f6 (patch)
treea2be86fa19751d8c590629f93f191be0e139455c /common
parent8894d0ba0209034e6db8e6f046e515ca90bc4550 (diff)
parent862ceba993fc0b20d8eeea380b60ae6e34596b8e (diff)
Merge "Do not log stack trace when http not found occurs"
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/org/onap/so/client/RestClient.java4
-rw-r--r--common/src/main/java/org/onap/so/client/RestRequest.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/common/src/main/java/org/onap/so/client/RestClient.java b/common/src/main/java/org/onap/so/client/RestClient.java
index 79fd7df7ce..0f4bbea03c 100644
--- a/common/src/main/java/org/onap/so/client/RestClient.java
+++ b/common/src/main/java/org/onap/so/client/RestClient.java
@@ -153,6 +153,10 @@ public abstract class RestClient {
}
return builder;
}
+
+ protected WebTarget getWebTarget() {
+ return this.webTarget;
+ }
protected abstract void initializeHeaderMap(Map<String, String> headerMap);
diff --git a/common/src/main/java/org/onap/so/client/RestRequest.java b/common/src/main/java/org/onap/so/client/RestRequest.java
index 985d7cc885..4788acfa7c 100644
--- a/common/src/main/java/org/onap/so/client/RestRequest.java
+++ b/common/src/main/java/org/onap/so/client/RestRequest.java
@@ -73,7 +73,7 @@ public class RestRequest implements Callable<Response> {
mapper.get().map(response);
} catch (NotFoundException e) {
if (this.client.props.mapNotFoundToEmpty() && "GET".equals(method)) {
- msoLogger.error(e);
+ msoLogger.debug("RestClient recieved not found on URL: " + this.client.getWebTarget().getUri());
return response;
} else {
throw e;