syncthing debug

This commit is contained in:
Tordarus 2025-01-16 13:01:35 +01:00
parent 715433d748
commit de9c92d6be
2 changed files with 1 additions and 3 deletions

View File

@ -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
})

View File

@ -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: