commit | 40ffc149b523ae2f96b43f945ae09418b3527904 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Tue Jul 28 13:41:18 2015 -0700 |
committer | Jonathan Hart <jono@onlab.us> | Tue Jul 28 13:41:18 2015 -0700 |
tree | 7875304815cb188f3c74a916f76695760f5afc0e | |
parent | d494985db9078aaff4c7459299a1c15abe9706b9 [diff] |
Move misleading log Change-Id: I11fa0e67ecf724a3ad004d0e916158be59e79cbf
diff --git a/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LinkDiscovery.java b/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LinkDiscovery.java index 5ff95c9..ec1595c 100644 --- a/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LinkDiscovery.java +++ b/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LinkDiscovery.java
@@ -141,9 +141,6 @@ * @param port the port */ public void addPort(final Port port) { - this.log.debug("Sending init probe to port {}@{}", - port.number().toLong(), device.id()); - boolean newPort = false; synchronized (this) { if (!containsPort(port.number().toLong())) { @@ -154,6 +151,8 @@ boolean isMaster = mastershipService.getLocalRole(device.id()) == MASTER; if (newPort && isMaster) { + this.log.debug("Sending init probe to port {}@{}", + port.number().toLong(), device.id()); sendProbes(port.number().toLong()); } }