From c3eb54f183d801634faffb05cb7178c5627e9742 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 14 Dec 2017 11:26:09 -0800 Subject: [PATCH] log when loading config from environment --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0f00b9038..538f40d85 100644 --- a/main.go +++ b/main.go @@ -275,7 +275,9 @@ func loadConfig() (*config, error) { } configFilePath := os.Getenv("PACKER_CONFIG") - if configFilePath == "" { + if configFilePath != "" { + log.Printf("'PACKER_CONFIG' set, loading config from environment.") + } else { var err error configFilePath, err = packer.ConfigFile()