Skip to content

Commit 7d77388

Browse files
committed
debugging
1 parent 1f49f31 commit 7d77388

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

internal/integration/log_helpers_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,6 @@ func newTruncValidator(mt *mtest.T, key string, cond func(string) error) truncVa
108108
mt.Helper()
109109

110110
return func(values ...interface{}) error {
111-
for _, val := range values {
112-
switch v := val.(type) {
113-
case string:
114-
fmt.Println("value string", key, len(v), v)
115-
default:
116-
fmt.Println("value", key, v)
117-
}
118-
}
119111
cmd := findLogValue(mt, key, values...)
120112
if cmd == nil {
121113
return fmt.Errorf("%q not found in keys and values", key)

internal/logger/logger.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ func FormatDocument(msg bson.Raw, width uint) string {
243243

244244
str := bsoncore.Document(msg).StringN(int(width))
245245

246+
fmt.Println("FormatDocument", len(str), width)
247+
246248
// If the last byte is not a closing bracket, then the document was truncated
247249
if len(str) > 0 && str[len(str)-1] != '}' {
248250
str += TruncationSuffix

0 commit comments

Comments
 (0)