Skip to content

Commit 348eca0

Browse files
committed
Use testLogger
1 parent 9c4d302 commit 348eca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/messagebirdtest/test_client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ func client(t *testing.T, accessKey string) *messagebird.Client {
4242
HTTPClient: &http.Client{
4343
Transport: transport,
4444
},
45-
DebugLog: log.New(testWriter{t: t}, "", 0),
45+
DebugLog: testLogger(t),
4646
}
4747
}
4848

49+
// testLogger creates a new logger that writes to the test's output.
4950
func testLogger(t *testing.T) *log.Logger {
5051
return log.New(testWriter{t: t}, "", 0)
5152
}

0 commit comments

Comments
 (0)