From 8fb5e397d713ef401bce2c05010349e64017fda8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Mon, 16 Jul 2018 13:15:01 +0200 Subject: [PATCH] Cleanup the output of the progress handler --- internal/log/handlers/cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/log/handlers/cli/cli.go b/internal/log/handlers/cli/cli.go index 5335c51..ca716d5 100644 --- a/internal/log/handlers/cli/cli.go +++ b/internal/log/handlers/cli/cli.go @@ -106,7 +106,7 @@ func (h *Handler) TypedLog(t string, e *log.Entry) error { switch t { case "progress": var err error - s := fmt.Sprintf("%.2f%%: %s", e.Fields.Get("percentage").(float64), e.Message) + s := fmt.Sprintf("%.2f%%: %-25s", e.Fields.Get("percentage").(float64)*100, e.Message) fmt.Fprintf(h.Writer, s) fmt.Fprintln(h.Writer) return err