diff --git a/packer/ui.go b/packer/ui.go index f2e25c050..9ba44518b 100644 --- a/packer/ui.go +++ b/packer/ui.go @@ -238,6 +238,13 @@ func (rw *BasicUi) Say(message string) { rw.l.Lock() defer rw.l.Unlock() + // Use LogSecretFilter to scrub out sensitive variables + for s := range LogSecretFilter.s { + if s != "" { + message = strings.Replace(message, s, "", -1) + } + } + log.Printf("ui: %s", message) _, err := fmt.Fprint(rw.Writer, message+"\n") if err != nil {