From 2253c87cfc91066677355f9fa371ee77c5acca70 Mon Sep 17 00:00:00 2001 From: Nonoo Date: Thu, 29 Oct 2020 22:16:20 +0100 Subject: [PATCH] No padding when log is not realtime --- statuslog.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/statuslog.go b/statuslog.go index 71a8fd4..3717720 100644 --- a/statuslog.go +++ b/statuslog.go @@ -112,6 +112,10 @@ func (s *statusLogStruct) print() { } func (s *statusLogStruct) padLeft(str string, length int) string { + if !s.isRealtimeInternal() { + return str + } + for len(str) < length { str = " " + str }