From f8e35ecb2f834eceb623efbab8d2a42a41718156 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 21 Oct 2016 16:20:38 -0700 Subject: [PATCH] terraform: log starting graph walk outside of the goroutine This is so ordering makes a bit more sense reliably. --- terraform/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/context.go b/terraform/context.go index 97d0c82da..7714455c9 100644 --- a/terraform/context.go +++ b/terraform/context.go @@ -739,9 +739,9 @@ func (c *Context) walk( // Kick off the shadow walk. This will block on any operations // on the real walk so it is fine to start first. + log.Printf("[INFO] Starting shadow graph walk: %s", operation.String()) shadowCh := make(chan error) go func() { - log.Printf("[INFO] Starting shadow graph walk: %s", operation.String()) shadowCh <- shadow.Walk(shadowWalker) }()