From de9c92d6be6ffddf2805005879da87b359e8ca93 Mon Sep 17 00:00:00 2001 From: Tordarus Date: Thu, 16 Jan 2025 13:01:35 +0100 Subject: [PATCH] syncthing debug --- main.go | 2 +- watch_dir.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 67e3d76..6e2bbbf 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ func main() { filteredFiles := channel.Filter(filesByGroup, Or(Not(Exists), And(SymlinkFilesOnly, VideosOnly))) filteredFiles = channel.MapSuccessive(filteredFiles, func(s string) string { - fmt.Println("DEBUG", s) + fmt.Println("FILTERED", s) return s }) diff --git a/watch_dir.go b/watch_dir.go index 117fe26..5b57e49 100644 --- a/watch_dir.go +++ b/watch_dir.go @@ -63,8 +63,6 @@ func WatchDirectory(ctx context.Context, path string, op ...fsnotify.Op) (<-chan } } - fmt.Println("DEBUG", "done providing existing files") - for { select { case event, ok := <-watcher.Events: