cmd/cli: make runtime log format better

By using more friendly markers to indicate the end of each log section,
so it's easier to read/parse for both human and machine.
This commit is contained in:
Cuong Manh Le
2025-02-05 13:14:31 +07:00
committed by Cuong Manh Le
parent 168eaf538b
commit f57972ead7
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ func Test_logWriter_Write(t *testing.T) {
t.Fatalf("unexpected buf content: %v", lw.buf.String())
}
newData := "B"
halfData := strings.Repeat("A", len(data)/2) + logTruncatedMarker
halfData := strings.Repeat("A", len(data)/2) + logStartEndMarker
lw.Write([]byte(newData))
if lw.buf.String() != halfData+newData {
t.Fatalf("unexpected new buf content: %v", lw.buf.String())