Skip to content

Commit 8f5550e

Browse files
committed
debugging
1 parent 7e07990 commit 8f5550e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/integration/log_helpers_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ 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-
fmt.Println("Info", level, len(msg), len(keysAndValues))
6362
sink.logs <- func() (int, string, []interface{}) {
6463
return level, msg, keysAndValues
6564
}
@@ -101,6 +100,14 @@ func newTruncValidator(mt *mtest.T, key string, cond func(string) error) truncVa
101100
mt.Helper()
102101

103102
return func(values ...interface{}) error {
103+
for _, val := range values {
104+
switch v := val.(type) {
105+
case string:
106+
fmt.Println("value string", key, len(v), v)
107+
default:
108+
fmt.Println("value", key, v)
109+
}
110+
}
104111
cmd := findLogValue(mt, key, values...)
105112
if cmd == nil {
106113
return fmt.Errorf("%q not found in keys and values", key)

0 commit comments

Comments
 (0)