From 63f02f86bf57f4b3a06e83fbe9ce4d861600244c Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 12 Jul 2016 02:21:23 -0800 Subject: [PATCH] Better log. --- .../src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt index 92004419..193d395d 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt @@ -35,7 +35,7 @@ class DynamicGraph { } fun removeNode(t: T) = synchronized(nodes) { - log(VERBOSE, " Removing $t") + log(VERBOSE, " Removing node $t") Node(t).let { node -> nodes.remove(node) dependingOn.removeAll(node) @@ -75,6 +75,7 @@ class DynamicGraph { } } val result = nodes.map { it.value }.filter { !nonFree.contains(it) }.toHashSet() + log(VERBOSE, " Free nodes: $result") return result } }