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() {
l.t.Helper()
// 2 frame skip for flush() + public logger fn
decorationLen := estimateInfoLen(2)
padding := 20
if decorationLen <= 25 {
padding = 25 - decorationLen
padding := 0
padLength := 30
if decorationLen <= padLength {
padding = padLength - decorationLen
}
for _, r := range l.h.buf {
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