Skip to content

Commit 1f49f31

Browse files
committed
debugging
1 parent 8f5550e commit 1f49f31

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/integration/log_helpers_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ func newTestLogSink(ctx context.Context, mt *mtest.T, bufferSize int, validator
5959
}
6060

6161
func (sink *testLogSink) Info(level int, msg string, keysAndValues ...interface{}) {
62+
for _, val := range keysAndValues {
63+
switch v := val.(type) {
64+
case string:
65+
fmt.Println("Info string", level, msg, len(v), v)
66+
default:
67+
fmt.Println("Info", level, msg, v)
68+
}
69+
}
6270
sink.logs <- func() (int, string, []interface{}) {
6371
return level, msg, keysAndValues
6472
}

0 commit comments

Comments
 (0)