Madan Jampani
Committed by Gerrit Code Review

Dropping log level to debug in few places

Change-Id: I4b42d4f3edfc6e9cdd0822cfcb74d1070b0b7a70
...@@ -479,7 +479,7 @@ public class DeviceManager ...@@ -479,7 +479,7 @@ public class DeviceManager
479 479
480 // FIXME: implement response to this notification 480 // FIXME: implement response to this notification
481 481
482 - log.info("got reply to a role request for {}: asked for {}, and got {}", 482 + log.debug("got reply to a role request for {}: asked for {}, and got {}",
483 deviceId, requested, response); 483 deviceId, requested, response);
484 484
485 if (requested == null && response == null) { 485 if (requested == null && response == null) {
...@@ -596,16 +596,18 @@ public class DeviceManager ...@@ -596,16 +596,18 @@ public class DeviceManager
596 post(devEvent); 596 post(devEvent);
597 } 597 }
598 // TODO: should apply role only if there is mismatch 598 // TODO: should apply role only if there is mismatch
599 - log.info("Applying role {} to {}", myNextRole, did); 599 + log.debug("Applying role {} to {}", myNextRole, did);
600 if (!applyRoleAndProbe(did, MASTER)) { 600 if (!applyRoleAndProbe(did, MASTER)) {
601 + log.warn("Unsuccessful applying role {} to {}", myNextRole, did);
601 // immediately failed to apply role 602 // immediately failed to apply role
602 mastershipService.relinquishMastership(did); 603 mastershipService.relinquishMastership(did);
603 // FIXME disconnect? 604 // FIXME disconnect?
604 } 605 }
605 break; 606 break;
606 case STANDBY: 607 case STANDBY:
607 - log.info("Applying role {} to {}", myNextRole, did); 608 + log.debug("Applying role {} to {}", myNextRole, did);
608 if (!applyRoleAndProbe(did, STANDBY)) { 609 if (!applyRoleAndProbe(did, STANDBY)) {
610 + log.warn("Unsuccessful applying role {} to {}", myNextRole, did);
609 // immediately failed to apply role 611 // immediately failed to apply role
610 mastershipService.relinquishMastership(did); 612 mastershipService.relinquishMastership(did);
611 // FIXME disconnect? 613 // FIXME disconnect?
......
...@@ -69,7 +69,7 @@ public class DeviceClockManager implements DeviceClockService, DeviceClockProvid ...@@ -69,7 +69,7 @@ public class DeviceClockManager implements DeviceClockService, DeviceClockProvid
69 69
70 @Override 70 @Override
71 public void setMastershipTerm(DeviceId deviceId, MastershipTerm term) { 71 public void setMastershipTerm(DeviceId deviceId, MastershipTerm term) {
72 - log.info("adding term info {} {}", deviceId, term.master()); 72 + log.debug("adding term info {} {}", deviceId, term.master());
73 deviceMastershipTerms.put(deviceId, term); 73 deviceMastershipTerms.put(deviceId, term);
74 } 74 }
75 75
......
...@@ -322,7 +322,7 @@ public class GossipDeviceStore ...@@ -322,7 +322,7 @@ public class GossipDeviceStore
322 } 322 }
323 323
324 if (deviceEvent != null) { 324 if (deviceEvent != null) {
325 - log.info("Notifying peers of a device update topology event for providerId: {} and deviceId: {}", 325 + log.debug("Notifying peers of a device update topology event for providerId: {} and deviceId: {}",
326 providerId, deviceId); 326 providerId, deviceId);
327 notifyPeers(new InternalDeviceEvent(providerId, deviceId, mergedDesc)); 327 notifyPeers(new InternalDeviceEvent(providerId, deviceId, mergedDesc));
328 } 328 }
...@@ -452,7 +452,7 @@ public class GossipDeviceStore ...@@ -452,7 +452,7 @@ public class GossipDeviceStore
452 final Timestamp timestamp = deviceClockService.getTimestamp(deviceId); 452 final Timestamp timestamp = deviceClockService.getTimestamp(deviceId);
453 final DeviceEvent event = markOfflineInternal(deviceId, timestamp); 453 final DeviceEvent event = markOfflineInternal(deviceId, timestamp);
454 if (event != null) { 454 if (event != null) {
455 - log.info("Notifying peers of a device offline topology event for deviceId: {} {}", 455 + log.debug("Notifying peers of a device offline topology event for deviceId: {} {}",
456 deviceId, timestamp); 456 deviceId, timestamp);
457 notifyPeers(new InternalDeviceOfflineEvent(deviceId, timestamp)); 457 notifyPeers(new InternalDeviceOfflineEvent(deviceId, timestamp));
458 } 458 }
...@@ -572,7 +572,7 @@ public class GossipDeviceStore ...@@ -572,7 +572,7 @@ public class GossipDeviceStore
572 } 572 }
573 573
574 if (!deviceEvents.isEmpty()) { 574 if (!deviceEvents.isEmpty()) {
575 - log.info("Notifying peers of a ports update topology event for providerId: {} and deviceId: {}", 575 + log.debug("Notifying peers of a ports update topology event for providerId: {} and deviceId: {}",
576 providerId, deviceId); 576 providerId, deviceId);
577 notifyPeers(new InternalPortEvent(providerId, deviceId, merged)); 577 notifyPeers(new InternalPortEvent(providerId, deviceId, merged));
578 } 578 }
...@@ -766,7 +766,7 @@ public class GossipDeviceStore ...@@ -766,7 +766,7 @@ public class GossipDeviceStore
766 .getPortDesc(portDescription.portNumber()); 766 .getPortDesc(portDescription.portNumber());
767 } 767 }
768 if (event != null) { 768 if (event != null) {
769 - log.info("Notifying peers of a port status update topology event for providerId: {} and deviceId: {}", 769 + log.debug("Notifying peers of a port status update topology event for providerId: {} and deviceId: {}",
770 providerId, deviceId); 770 providerId, deviceId);
771 notifyPeers(new InternalPortStatusEvent(providerId, deviceId, mergedDesc)); 771 notifyPeers(new InternalPortStatusEvent(providerId, deviceId, mergedDesc));
772 } 772 }
......
...@@ -317,7 +317,7 @@ public class GossipLinkStore ...@@ -317,7 +317,7 @@ public class GossipLinkStore
317 } 317 }
318 318
319 if (linkEvent != null) { 319 if (linkEvent != null) {
320 - log.info("Notifying peers of a link update topology event from providerId: " 320 + log.debug("Notifying peers of a link update topology event from providerId: "
321 + "{} between src: {} and dst: {}", 321 + "{} between src: {} and dst: {}",
322 providerId, linkDescription.src(), linkDescription.dst()); 322 providerId, linkDescription.src(), linkDescription.dst());
323 notifyPeers(new InternalLinkEvent(providerId, mergedDesc)); 323 notifyPeers(new InternalLinkEvent(providerId, mergedDesc));
...@@ -475,7 +475,7 @@ public class GossipLinkStore ...@@ -475,7 +475,7 @@ public class GossipLinkStore
475 LinkEvent event = removeLinkInternal(key, timestamp); 475 LinkEvent event = removeLinkInternal(key, timestamp);
476 476
477 if (event != null) { 477 if (event != null) {
478 - log.info("Notifying peers of a link removed topology event for a link " 478 + log.debug("Notifying peers of a link removed topology event for a link "
479 + "between src: {} and dst: {}", src, dst); 479 + "between src: {} and dst: {}", src, dst);
480 notifyPeers(new InternalLinkRemovedEvent(key, timestamp)); 480 notifyPeers(new InternalLinkRemovedEvent(key, timestamp));
481 } 481 }
......
...@@ -274,7 +274,7 @@ public abstract class AbstractOpenFlowSwitch extends AbstractHandlerBehaviour ...@@ -274,7 +274,7 @@ public abstract class AbstractOpenFlowSwitch extends AbstractHandlerBehaviour
274 public void setRole(RoleState role) { 274 public void setRole(RoleState role) {
275 try { 275 try {
276 if (this.roleMan.sendRoleRequest(role, RoleRecvStatus.MATCHED_SET_ROLE)) { 276 if (this.roleMan.sendRoleRequest(role, RoleRecvStatus.MATCHED_SET_ROLE)) {
277 - log.info("Sending role {} to switch {}", role, getStringId()); 277 + log.debug("Sending role {} to switch {}", role, getStringId());
278 if (role == RoleState.SLAVE || role == RoleState.EQUAL) { 278 if (role == RoleState.SLAVE || role == RoleState.EQUAL) {
279 this.role = role; 279 this.role = role;
280 } 280 }
......
...@@ -119,7 +119,7 @@ public final class BoundedThreadPool extends ThreadPoolExecutor { ...@@ -119,7 +119,7 @@ public final class BoundedThreadPool extends ThreadPoolExecutor {
119 long prev = lastPrinted.get(); 119 long prev = lastPrinted.get();
120 if (now - prev > STATS_INTERVAL) { 120 if (now - prev > STATS_INTERVAL) {
121 if (lastPrinted.compareAndSet(prev, now)) { 121 if (lastPrinted.compareAndSet(prev, now)) {
122 - log.warn("queue size: {} jobs, submitted: {} jobs/s, taken: {} jobs/s", 122 + log.debug("queue size: {} jobs, submitted: {} jobs/s, taken: {} jobs/s",
123 getQueue().size(), 123 getQueue().size(),
124 submitted.throughput(), taken.throughput()); 124 submitted.throughput(), taken.throughput());
125 submitted.reset(); 125 submitted.reset();
......