add node pruning log line
This commit is contained in:
parent
75ec201e6a
commit
10e8529471
|
@ -268,10 +268,10 @@ func (m *pruneUnusedNodesMod) removeUnused(g *Graph) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, vv := range g.UpEdges(n) {
|
for _, v := range g.UpEdges(n) {
|
||||||
// keep any value which is connected through a
|
// keep any value which is connected through a
|
||||||
// reference
|
// reference
|
||||||
if _, ok := vv.(GraphNodeReferencer); ok {
|
if _, ok := v.(GraphNodeReferencer); ok {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -279,8 +279,8 @@ func (m *pruneUnusedNodesMod) removeUnused(g *Graph) {
|
||||||
case graphNodeExpandsInstances:
|
case graphNodeExpandsInstances:
|
||||||
// Any nodes that expand instances are kept when their
|
// Any nodes that expand instances are kept when their
|
||||||
// instances may need to be evaluated.
|
// instances may need to be evaluated.
|
||||||
for _, vv := range g.UpEdges(n) {
|
for _, v := range g.UpEdges(n) {
|
||||||
switch vv.(type) {
|
switch v.(type) {
|
||||||
case graphNodeExpandsInstances:
|
case graphNodeExpandsInstances:
|
||||||
// expanders can always depend on module expansion
|
// expanders can always depend on module expansion
|
||||||
// themselves
|
// themselves
|
||||||
|
@ -296,6 +296,7 @@ func (m *pruneUnusedNodesMod) removeUnused(g *Graph) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("[DEBUG] pruneUnusedNodes: %s is no longer needed, removing", dag.VertexName(n))
|
||||||
g.Remove(n)
|
g.Remove(n)
|
||||||
removed = true
|
removed = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue