Merge "Do not log stack trace when http not found occurs"
authorMarcus Williams <marcus.williams@intel.com>
Fri, 24 Aug 2018 20:08:58 +0000 (20:08 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 24 Aug 2018 20:08:58 +0000 (20:08 +0000)
common/src/main/java/org/onap/so/client/RestClient.java
common/src/main/java/org/onap/so/client/RestRequest.java

index 79fd7df..0f4bbea 100644 (file)
@@ -153,6 +153,10 @@ public abstract class RestClient {
                }
                return builder;
        }
+       
+       protected WebTarget getWebTarget() {
+               return this.webTarget;
+       }
 
        protected abstract void initializeHeaderMap(Map<String, String> headerMap);
 
index 985d7cc..4788acf 100644 (file)
@@ -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;