Skip to content

Commit aadec44

Browse files
committed
Add debug logs to test
1 parent 2fff579 commit aadec44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/watcher/file/file_watcher_service_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package file
88
import (
99
"bytes"
1010
"context"
11+
"log/slog"
1112
"os"
1213
"path"
1314
"path/filepath"
@@ -216,6 +217,9 @@ func TestFileWatcherService_Watch(t *testing.T) {
216217
ctx, cancel := context.WithCancel(context.Background())
217218
defer cancel()
218219

220+
slog.SetLogLoggerLevel(slog.LevelDebug)
221+
defer slog.SetLogLoggerLevel(slog.LevelInfo)
222+
219223
tempDir := t.TempDir()
220224
testDirectory := path.Join(tempDir, "test_dir")
221225
err := os.Mkdir(testDirectory, directoryPermissions)

0 commit comments

Comments
 (0)