terraform: more logs
This commit is contained in:
parent
3acb7dc154
commit
b51d18f1de
|
@ -121,7 +121,9 @@ func (c *Context) Apply() (*State, error) {
|
|||
c.state = c.state.deepcopy()
|
||||
|
||||
// Walk
|
||||
log.Printf("[INFO] Apply walk starting")
|
||||
err = g.Walk(c.applyWalkFn())
|
||||
log.Printf("[INFO] Apply walk complete")
|
||||
|
||||
// Prune the state so that we have as clean a state as possible
|
||||
c.state.prune()
|
||||
|
|
|
@ -3,6 +3,7 @@ package terraform
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
|
@ -100,6 +101,8 @@ func Graph(opts *GraphOpts) (*depgraph.Graph, error) {
|
|||
return nil, errors.New("Config is required for Graph")
|
||||
}
|
||||
|
||||
log.Printf("[DEBUG] Creating graph...")
|
||||
|
||||
g := new(depgraph.Graph)
|
||||
|
||||
// First, build the initial resource graph. This only has the resources
|
||||
|
@ -160,6 +163,10 @@ func Graph(opts *GraphOpts) (*depgraph.Graph, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
log.Printf(
|
||||
"[DEBUG] Graph created and valid. %d nouns.",
|
||||
len(g.Nouns))
|
||||
|
||||
return g, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue