terraform: log starting graph walk outside of the goroutine

This is so ordering makes a bit more sense reliably.
This commit is contained in:
Mitchell Hashimoto 2016-10-21 16:20:38 -07:00
parent a0382ccbdd
commit f8e35ecb2f
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}()