mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-23 05:11:04 +02:00
Change log level to prevent warning flood in port table polling
Change-Id: I7a5404f17b853adddbe8d9518e6777ad29942d83
This commit is contained in:
parent
f4a3491e80
commit
dd5a00b2d5
@ -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;
|
||||
}
|
||||
|
||||
@ -441,7 +442,8 @@ public class RoadmManager implements RoadmService {
|
||||
if (device != null && device.is(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;
|
||||
}
|
||||
|
||||
@ -450,7 +452,8 @@ public class RoadmManager implements RoadmService {
|
||||
if (device != null && device.is(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;
|
||||
}
|
||||
|
||||
@ -459,7 +462,8 @@ public class RoadmManager implements RoadmService {
|
||||
if (device != null && device.is(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;
|
||||
}
|
||||
|
||||
|
@ -400,7 +400,8 @@ public class OplinkPowerConfigUtil {
|
||||
}
|
||||
String power = port.annotations().value(annotation);
|
||||
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 Long.valueOf(power);
|
||||
|
Loading…
x
Reference in New Issue
Block a user