Skip to content

Commit b49403f

Browse files
authored
fix tc logger for v0.36.0 (#1787)
1 parent f38abca commit b49403f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/.changeset/v1.52.4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix tc logger for v0.36.0

lib/logging/log.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,13 @@ func GetTestLogger(t *testing.T) zerolog.Logger {
105105
// GetTestContainersGoTestLogger returns a logger that will write to the testing.T.Log function using the env var for log level
106106
// for logs that testcontainers-go will log out. nil can be passed to this and it will be treated as the default tc.Logger
107107
func GetTestContainersGoTestLogger(t *testing.T) tclog.Logger {
108-
l := tclog.TestLogger(t)
109108
if t != nil {
110-
l = CustomT{
109+
return CustomT{
111110
T: t,
112111
L: GetTestLogger(t),
113112
}
114113
}
115-
return l
114+
return tclog.Default()
116115
}
117116

118117
// SplitStringIntoChunks takes a string and splits it into chunks of a specified size.

0 commit comments

Comments
 (0)