Move misleading log
Change-Id: I11fa0e67ecf724a3ad004d0e916158be59e79cbf
Showing
1 changed file
with
2 additions
and
3 deletions
| ... | @@ -141,9 +141,6 @@ public class LinkDiscovery implements TimerTask { | ... | @@ -141,9 +141,6 @@ public class LinkDiscovery implements TimerTask { |
| 141 | * @param port the port | 141 | * @param port the port |
| 142 | */ | 142 | */ |
| 143 | public void addPort(final Port port) { | 143 | public void addPort(final Port port) { |
| 144 | - this.log.debug("Sending init probe to port {}@{}", | ||
| 145 | - port.number().toLong(), device.id()); | ||
| 146 | - | ||
| 147 | boolean newPort = false; | 144 | boolean newPort = false; |
| 148 | synchronized (this) { | 145 | synchronized (this) { |
| 149 | if (!containsPort(port.number().toLong())) { | 146 | if (!containsPort(port.number().toLong())) { |
| ... | @@ -154,6 +151,8 @@ public class LinkDiscovery implements TimerTask { | ... | @@ -154,6 +151,8 @@ public class LinkDiscovery implements TimerTask { |
| 154 | 151 | ||
| 155 | boolean isMaster = mastershipService.getLocalRole(device.id()) == MASTER; | 152 | boolean isMaster = mastershipService.getLocalRole(device.id()) == MASTER; |
| 156 | if (newPort && isMaster) { | 153 | if (newPort && isMaster) { |
| 154 | + this.log.debug("Sending init probe to port {}@{}", | ||
| 155 | + port.number().toLong(), device.id()); | ||
| 157 | sendProbes(port.number().toLong()); | 156 | sendProbes(port.number().toLong()); |
| 158 | } | 157 | } |
| 159 | } | 158 | } | ... | ... |
-
Please register or login to post a comment