Cleanup the output of the progress handler

This commit is contained in:
Arturo Filastò 2018-07-16 13:15:01 +02:00
parent 69ec294ad4
commit 8fb5e397d7

View File

@ -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