Commit 4b62a35d authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

Merge pull request #3940 from ethereum-optimism/jg/testlogger_changes

testlogger: Nicer output
parents 2f526c40 d1cefb61
...@@ -146,9 +146,10 @@ func (l *logger) flush() { ...@@ -146,9 +146,10 @@ func (l *logger) flush() {
l.t.Helper() l.t.Helper()
// 2 frame skip for flush() + public logger fn // 2 frame skip for flush() + public logger fn
decorationLen := estimateInfoLen(2) decorationLen := estimateInfoLen(2)
padding := 20 padding := 0
if decorationLen <= 25 { padLength := 30
padding = 25 - decorationLen if decorationLen <= padLength {
padding = padLength - decorationLen
} }
for _, r := range l.h.buf { for _, r := range l.h.buf {
l.t.Logf("%*s%s", padding, "", l.h.fmt.Format(r)) l.t.Logf("%*s%s", padding, "", l.h.fmt.Format(r))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment