1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Better log.

This commit is contained in:
Cedric Beust 2016-07-12 02:21:23 -08:00
parent ec3edce536
commit 63f02f86bf

View file

@ -35,7 +35,7 @@ class DynamicGraph<T> {
} }
fun removeNode(t: T) = synchronized(nodes) { fun removeNode(t: T) = synchronized(nodes) {
log(VERBOSE, " Removing $t") log(VERBOSE, " Removing node $t")
Node(t).let { node -> Node(t).let { node ->
nodes.remove(node) nodes.remove(node)
dependingOn.removeAll(node) dependingOn.removeAll(node)
@ -75,6 +75,7 @@ class DynamicGraph<T> {
} }
} }
val result = nodes.map { it.value }.filter { !nonFree.contains(it) }.toHashSet() val result = nodes.map { it.value }.filter { !nonFree.contains(it) }.toHashSet()
log(VERBOSE, " Free nodes: $result")
return result return result
} }
} }