Reduce debugLog amount in IpNeighbourMonitor
This commit is contained in:
@@ -68,9 +68,9 @@ class IpNeighbourMonitor private constructor() {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
monitor.inputStream.bufferedReader().forEachLine {
|
monitor.inputStream.bufferedReader().forEachLine {
|
||||||
debugLog(TAG, it)
|
|
||||||
synchronized(neighbours) {
|
synchronized(neighbours) {
|
||||||
val neighbour = IpNeighbour.parse(it) ?: return@forEachLine
|
val neighbour = IpNeighbour.parse(it) ?: return@forEachLine
|
||||||
|
debugLog(TAG, it)
|
||||||
val changed = if (neighbour.state == IpNeighbour.State.DELETING)
|
val changed = if (neighbour.state == IpNeighbour.State.DELETING)
|
||||||
neighbours.remove(neighbour.ip) != null
|
neighbours.remove(neighbour.ip) != null
|
||||||
else neighbours.put(neighbour.ip, neighbour) != neighbour
|
else neighbours.put(neighbour.ip, neighbour) != neighbour
|
||||||
|
|||||||
Reference in New Issue
Block a user