diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
commit | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/github.com/hashicorp/terraform/dag/walk.go | |
parent | 07971ca38143c5faf951d152fba370ddcbe26ad5 (diff) | |
download | terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip |
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/dag/walk.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/dag/walk.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vendor/github.com/hashicorp/terraform/dag/walk.go b/vendor/github.com/hashicorp/terraform/dag/walk.go index 23c87ad..f03b100 100644 --- a/vendor/github.com/hashicorp/terraform/dag/walk.go +++ b/vendor/github.com/hashicorp/terraform/dag/walk.go | |||
@@ -166,7 +166,7 @@ func (w *Walker) Update(g *AcyclicGraph) { | |||
166 | w.wait.Add(1) | 166 | w.wait.Add(1) |
167 | 167 | ||
168 | // Add to our own set so we know about it already | 168 | // Add to our own set so we know about it already |
169 | log.Printf("[DEBUG] dag/walk: added new vertex: %q", VertexName(v)) | 169 | log.Printf("[TRACE] dag/walk: added new vertex: %q", VertexName(v)) |
170 | w.vertices.Add(raw) | 170 | w.vertices.Add(raw) |
171 | 171 | ||
172 | // Initialize the vertex info | 172 | // Initialize the vertex info |
@@ -198,7 +198,7 @@ func (w *Walker) Update(g *AcyclicGraph) { | |||
198 | // Delete it out of the map | 198 | // Delete it out of the map |
199 | delete(w.vertexMap, v) | 199 | delete(w.vertexMap, v) |
200 | 200 | ||
201 | log.Printf("[DEBUG] dag/walk: removed vertex: %q", VertexName(v)) | 201 | log.Printf("[TRACE] dag/walk: removed vertex: %q", VertexName(v)) |
202 | w.vertices.Delete(raw) | 202 | w.vertices.Delete(raw) |
203 | } | 203 | } |
204 | 204 | ||
@@ -229,7 +229,7 @@ func (w *Walker) Update(g *AcyclicGraph) { | |||
229 | changedDeps.Add(waiter) | 229 | changedDeps.Add(waiter) |
230 | 230 | ||
231 | log.Printf( | 231 | log.Printf( |
232 | "[DEBUG] dag/walk: added edge: %q waiting on %q", | 232 | "[TRACE] dag/walk: added edge: %q waiting on %q", |
233 | VertexName(waiter), VertexName(dep)) | 233 | VertexName(waiter), VertexName(dep)) |
234 | w.edges.Add(raw) | 234 | w.edges.Add(raw) |
235 | } | 235 | } |
@@ -253,7 +253,7 @@ func (w *Walker) Update(g *AcyclicGraph) { | |||
253 | changedDeps.Add(waiter) | 253 | changedDeps.Add(waiter) |
254 | 254 | ||
255 | log.Printf( | 255 | log.Printf( |
256 | "[DEBUG] dag/walk: removed edge: %q waiting on %q", | 256 | "[TRACE] dag/walk: removed edge: %q waiting on %q", |
257 | VertexName(waiter), VertexName(dep)) | 257 | VertexName(waiter), VertexName(dep)) |
258 | w.edges.Delete(raw) | 258 | w.edges.Delete(raw) |
259 | } | 259 | } |
@@ -296,7 +296,7 @@ func (w *Walker) Update(g *AcyclicGraph) { | |||
296 | info.depsCancelCh = cancelCh | 296 | info.depsCancelCh = cancelCh |
297 | 297 | ||
298 | log.Printf( | 298 | log.Printf( |
299 | "[DEBUG] dag/walk: dependencies changed for %q, sending new deps", | 299 | "[TRACE] dag/walk: dependencies changed for %q, sending new deps", |
300 | VertexName(v)) | 300 | VertexName(v)) |
301 | 301 | ||
302 | // Start the waiter | 302 | // Start the waiter |
@@ -383,10 +383,10 @@ func (w *Walker) walkVertex(v Vertex, info *walkerVertex) { | |||
383 | // Run our callback or note that our upstream failed | 383 | // Run our callback or note that our upstream failed |
384 | var err error | 384 | var err error |
385 | if depsSuccess { | 385 | if depsSuccess { |
386 | log.Printf("[DEBUG] dag/walk: walking %q", VertexName(v)) | 386 | log.Printf("[TRACE] dag/walk: walking %q", VertexName(v)) |
387 | err = w.Callback(v) | 387 | err = w.Callback(v) |
388 | } else { | 388 | } else { |
389 | log.Printf("[DEBUG] dag/walk: upstream errored, not walking %q", VertexName(v)) | 389 | log.Printf("[TRACE] dag/walk: upstream errored, not walking %q", VertexName(v)) |
390 | err = errWalkUpstream | 390 | err = errWalkUpstream |
391 | } | 391 | } |
392 | 392 | ||
@@ -423,7 +423,7 @@ func (w *Walker) waitDeps( | |||
423 | return | 423 | return |
424 | 424 | ||
425 | case <-time.After(time.Second * 5): | 425 | case <-time.After(time.Second * 5): |
426 | log.Printf("[DEBUG] dag/walk: vertex %q, waiting for: %q", | 426 | log.Printf("[TRACE] dag/walk: vertex %q, waiting for: %q", |
427 | VertexName(v), VertexName(dep)) | 427 | VertexName(v), VertexName(dep)) |
428 | } | 428 | } |
429 | } | 429 | } |