diff options
author | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2018-08-24 09:18:07 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2018-08-24 09:18:18 -0400 |
commit | 862ceba993fc0b20d8eeea380b60ae6e34596b8e (patch) | |
tree | c8e352517a1a7082250fe98f71479948c84696a5 /common/src/main/java/org/onap | |
parent | 969cde43a1c52fc5a0131cd94713a3c4ba3d1564 (diff) |
Do not log stack trace when http not found occurs
do not log stack trace when http not found occurs
Change-Id: Ia0638eba7f8d9544dae21290c836c7be1e05ac2e
Issue-ID: SO-902
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'common/src/main/java/org/onap')
-rw-r--r-- | common/src/main/java/org/onap/so/client/RestClient.java | 4 | ||||
-rw-r--r-- | common/src/main/java/org/onap/so/client/RestRequest.java | 2 |
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; |