Don't log errors when can't find sadis data
Change-Id: I8ace00cee3e972ebd105b4fd0d7da873593541e7
diff --git a/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationAdapter.java b/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationAdapter.java
index 5026e66..b5fe72e 100644
--- a/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationAdapter.java
+++ b/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationAdapter.java
@@ -15,6 +15,18 @@
*/
package org.opencord.sadis.impl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.module.SimpleModule;
+import com.google.common.cache.Cache;
+import com.google.common.cache.CacheBuilder;
+import com.google.common.collect.Maps;
+import org.onlab.packet.Ip4Address;
+import org.onlab.packet.VlanId;
+import org.opencord.sadis.SubscriberAndDeviceInformation;
+import org.opencord.sadis.SubscriberAndDeviceInformationService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
@@ -22,20 +34,6 @@
import java.util.Map;
import java.util.concurrent.TimeUnit;
-import org.opencord.sadis.SubscriberAndDeviceInformation;
-import org.opencord.sadis.SubscriberAndDeviceInformationService;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.module.SimpleModule;
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.collect.Maps;
-import org.onlab.packet.VlanId;
-import org.onlab.packet.Ip4Address;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
public abstract class SubscriberAndDeviceInformationAdapter implements SubscriberAndDeviceInformationService {
@@ -199,11 +197,11 @@
local.put(id, info);
return info;
} catch (IOException e) {
- // TODO Auto-generated catch block
- log.warn("Exception while reading remote data " + e.getMessage());
+ // TODO use a better http library that allows us to read status code
+ log.debug("Exception while reading remote data " + e.getMessage());
}
}
- log.error("Data not found for id {}", id);
+ log.debug("Data not found for id {}", id);
return null;
}
}