core: Log local overrides as INFO rather than WARN

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!
This commit is contained in:
James Nugent 2016-09-14 09:19:03 +01:00
parent 255fe7e74a
commit a0a59d3fb7
1 changed files with 2 additions and 2 deletions

View File

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