backend: add debug logs

This commit is contained in:
nemunaire 2018-01-16 23:59:51 +01:00
parent 2bf88089b3
commit 9d4c048f0e
2 changed files with 4 additions and 1 deletions

View file

@ -123,7 +123,7 @@ func genAll() {
} else {
for _, team := range(teams) {
if err := genTeamMyFile(team); err != nil {
log.Println("Tean generation error: ", err)
log.Println("Team generation error: ", err)
}
}
}

View file

@ -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.")