Thomas Vachuska
Committed by Gerrit Code Review

Adusted log-levels in flow store and packet manager.

Change-Id: I38748bfddfe1aae66bd8a6a9086575dc2e155078
......@@ -170,6 +170,7 @@ public class PacketManager
* @param request the packet request
*/
private void pushToAllDevices(PacketRequest request) {
log.debug("Pushing packet request {} to all devices", request);
for (Device device : deviceService.getDevices()) {
pushRule(device, request);
}
......@@ -202,7 +203,8 @@ public class PacketManager
.add(new ObjectiveContext() {
@Override
public void onError(Objective objective, ObjectiveError error) {
log.warn("Failed to install packet request {}: {}", request, error);
log.warn("Failed to install packet request {} to {}: {}",
request, device.id(), error);
}
});
......@@ -224,7 +226,8 @@ public class PacketManager
.remove(new ObjectiveContext() {
@Override
public void onError(Objective objective, ObjectiveError error) {
log.warn("Failed to withdraw packet request {}: {}", request, error);
log.warn("Failed to withdraw packet request {} from {}: {}",
request, device.id(), error);
}
});
......@@ -308,6 +311,7 @@ public class PacketManager
case DEVICE_ADDED:
case DEVICE_AVAILABILITY_CHANGED:
if (deviceService.isAvailable(event.subject().id())) {
log.debug("Pushing packet requests to device {}", event.subject().id());
for (PacketRequest request : store.existingRequests()) {
pushRule(device, request);
}
......
......@@ -319,7 +319,7 @@ public class NewDistributedFlowRuleStore
NodeId master = mastershipService.getMasterFor(rule.deviceId());
if (master == null) {
log.warn("Failed to getFlowEntry: No master for {}", rule.deviceId());
log.debug("Failed to getFlowEntry: No master for {}", rule.deviceId());
return null;
}
......@@ -345,7 +345,7 @@ public class NewDistributedFlowRuleStore
NodeId master = mastershipService.getMasterFor(deviceId);
if (master == null) {
log.warn("Failed to getFlowEntries: No master for {}", deviceId);
log.debug("Failed to getFlowEntries: No master for {}", deviceId);
return Collections.emptyList();
}
......