Skip to content

Commit 5f42719

Browse files
committed
tests: use testing.T.TempDir()
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 87b5372 commit 5f42719

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/debug/debug.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ import (
1111
"runtime"
1212
)
1313

14-
var (
15-
output = os.Stdout
16-
)
14+
var output = os.Stdout //nolint:gochecknoglobals // this is on purpose to be overridable during tests
1715

18-
// GetLogger provides a prefix debug logger
16+
// GetLogger provides a prefix debug logger.
1917
func GetLogger(prefix string, debug bool) func(string, ...any) {
2018
if debug {
2119
logger := log.New(output, prefix+":", log.LstdFlags)

0 commit comments

Comments
 (0)