mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Record walk order in the debug graph
Insert the walk order into the graph labels. Removed some extra debug output.
This commit is contained in:
parent
354f04f104
commit
1cea51a9fa
@ -24,8 +24,8 @@ type DebugGraph struct {
|
||||
sync.Mutex
|
||||
Name string
|
||||
|
||||
step int
|
||||
buf bytes.Buffer
|
||||
ord int
|
||||
buf bytes.Buffer
|
||||
|
||||
Dot *dot.Graph
|
||||
dotOpts *GraphDotOpts
|
||||
@ -94,6 +94,10 @@ func (dg *DebugGraph) DebugNode(v interface{}) {
|
||||
dg.Lock()
|
||||
defer dg.Unlock()
|
||||
|
||||
// record the ordinal value for each node
|
||||
ord := dg.ord
|
||||
dg.ord++
|
||||
|
||||
name := graphDotNodeName("root", v)
|
||||
|
||||
var node *dot.Node
|
||||
|
Loading…
Reference in New Issue
Block a user