Skip to content

Commit

Permalink
core: Log local overrides as INFO rather than WARN
Browse files Browse the repository at this point in the history
A user has at some point explicitly specified in .terraformrc that
overriding should take place (unlike PATH based overrides), so this
should log as INFO rather than WARN.

It is still of value for debugging purposes, however!
  • Loading branch information
jen20 committed Sep 14, 2016
1 parent 255fe7e commit a0a59d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (c1 *Config) Merge(c2 *Config) *Config {
}
for k, v := range c2.Providers {
if v1, ok := c1.Providers[k]; ok {
log.Printf("[WARN] Local %s provider configuration '%s' overrides '%s'", k, v, v1)
log.Printf("[INFO] Local %s provider configuration '%s' overrides '%s'", k, v, v1)
}
result.Providers[k] = v
}
Expand All @@ -179,7 +179,7 @@ func (c1 *Config) Merge(c2 *Config) *Config {
}
for k, v := range c2.Provisioners {
if v1, ok := c1.Provisioners[k]; ok {
log.Printf("[WARN] Local %s provisioner configuration '%s' overrides '%s'", k, v, v1)
log.Printf("[INFO] Local %s provisioner configuration '%s' overrides '%s'", k, v, v1)
}
result.Provisioners[k] = v
}
Expand Down

0 comments on commit a0a59d3

Please sign in to comment.