backend: add debug logs
This commit is contained in:
parent
2bf88089b3
commit
9d4c048f0e
2 changed files with 4 additions and 1 deletions
|
@ -119,6 +119,9 @@ func main() {
|
|||
log.Println(err)
|
||||
}
|
||||
} else if ev.Op & watchedNotify == watchedNotify {
|
||||
if *debugINotify {
|
||||
log.Println("Treating event:", ev, "for", ev.Name)
|
||||
}
|
||||
go treat(ev.Name)
|
||||
} else if ev.Op & fsnotify.Write == fsnotify.Write {
|
||||
log.Println("FSNOTIFY WRITE SEEN. Prefer looking at them, as it appears files are not atomically moved.")
|
||||
|
|
Reference in a new issue