17609: Improve log text alignment.
authorTom Clegg <tom@curii.com>
Wed, 2 Jun 2021 19:23:56 +0000 (15:23 -0400)
committerTom Clegg <tom@curii.com>
Tue, 8 Jun 2021 15:29:09 +0000 (11:29 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/diagnostics/cmd.go

index 3b3ed400b3390ef52997eef1907a7571c0630f49..54c78d07cf9d926350d3b4f97a15bad6572c687e 100644 (file)
@@ -99,14 +99,14 @@ func (diag *diagnoser) dotest(id int, title string, fn func() error) {
        }
        diag.done[id] = true
 
-       diag.infof("%d %s", id, title)
+       diag.infof("%4d %s", id, title)
        t0 := time.Now()
        err := fn()
        elapsed := fmt.Sprintf("%.0dms", time.Now().Sub(t0)/time.Millisecond)
        if err != nil {
                diag.errorf("%s (%s): %s", title, elapsed, err)
        }
-       diag.debugf("%d %s (%s): ok", id, title, elapsed)
+       diag.debugf("%4d %s (%s): ok", id, title, elapsed)
 }
 
 func (diag *diagnoser) runtests() {