From 9912e569e1d6614c80aa7f4ef11956c897ba34d0 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 25 Jul 2019 16:33:02 -0700 Subject: [PATCH] deduplicate loglines that stream both to ui ERROR call and to streaming logs when PACKER_LOG=1 --- log.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/log.go b/log.go index e5c07c206..1a6722235 100644 --- a/log.go +++ b/log.go @@ -35,6 +35,9 @@ func logOutput() (logOutput io.Writer, err error) { if strings.Contains(scanner.Text(), "ui:") { continue } + if strings.Contains(scanner.Text(), "ui error:") { + continue + } os.Stderr.WriteString(fmt.Sprint(scanner.Text() + "\n")) } }(scanner)