|
|
|
|
@ -13,7 +13,7 @@ const EnvLogFile = "PACKER_LOG_PATH" //Set to a file
|
|
|
|
|
// logOutput determines where we should send logs (if anywhere).
|
|
|
|
|
func logOutput() (logOutput io.Writer, err error) {
|
|
|
|
|
logOutput = nil
|
|
|
|
|
if os.Getenv(EnvLog) != "" || os.Getenv(EnvLog) != "0" {
|
|
|
|
|
if os.Getenv(EnvLog) != "" && os.Getenv(EnvLog) != "0" {
|
|
|
|
|
logOutput = os.Stderr
|
|
|
|
|
|
|
|
|
|
if logPath := os.Getenv(EnvLogFile); logPath != "" {
|
|
|
|
|
|