mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-23 01:27:13 +02:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user