Change log level to prevent warning flood in port table polling

Change-Id: I7a5404f17b853adddbe8d9518e6777ad29942d83
This commit is contained in:
MaoLu 2017-03-14 11:19:48 -07:00 committed by Yuta HIGUCHI
parent f4a3491e80
commit dd5a00b2d5
2 changed files with 10 additions and 5 deletions

View File

@ -149,7 +149,8 @@ public class RoadmManager implements RoadmService {
} }
} }
} }
log.warn("Unable to get port status, device: {}, port: {}", deviceId, portNumber); // Do not need warning here for port polling.
log.debug("Unable to get port status, device: {}, port: {}", deviceId, portNumber);
return null; return null;
} }
@ -441,7 +442,8 @@ public class RoadmManager implements RoadmService {
if (device != null && device.is(PowerConfig.class)) { if (device != null && device.is(PowerConfig.class)) {
return device.as(PowerConfig.class); return device.as(PowerConfig.class);
} }
log.warn("Unable to load PowerConfig for {}", deviceId); // Do not need warning here for port polling.
log.debug("Unable to load PowerConfig for {}", deviceId);
return null; return null;
} }
@ -450,7 +452,8 @@ public class RoadmManager implements RoadmService {
if (device != null && device.is(LambdaQuery.class)) { if (device != null && device.is(LambdaQuery.class)) {
return device.as(LambdaQuery.class); return device.as(LambdaQuery.class);
} }
log.warn("Unable to load LambdaQuery for {}", deviceId); // Do not need warning here for port polling.
log.debug("Unable to load LambdaQuery for {}", deviceId);
return null; return null;
} }
@ -459,7 +462,8 @@ public class RoadmManager implements RoadmService {
if (device != null && device.is(ProtectionConfigBehaviour.class)) { if (device != null && device.is(ProtectionConfigBehaviour.class)) {
return device.as(ProtectionConfigBehaviour.class); return device.as(ProtectionConfigBehaviour.class);
} }
log.warn("Unable to load ProtectionConfigBehaviour for {}", deviceId); // Do not need warning here for port polling.
log.debug("Unable to load ProtectionConfigBehaviour for {}", deviceId);
return null; return null;
} }

View File

@ -400,7 +400,8 @@ public class OplinkPowerConfigUtil {
} }
String power = port.annotations().value(annotation); String power = port.annotations().value(annotation);
if (power == null) { if (power == null) {
log.warn("Cannot get {} from port {}.", annotation, portNum); // Do not need warning here for port polling.
log.debug("Cannot get {} from port {}.", annotation, portNum);
return null; return null;
} }
return Long.valueOf(power); return Long.valueOf(power);