Log on file updates

This commit is contained in:
Daniel Wagner-Hall 2015-09-10 14:25:37 +01:00
parent 6e86cb34d2
commit 6ac519d9dc

View file

@ -68,6 +68,7 @@ func watchFS(ch chan struct{}, w *fsnotify.Watcher) {
case e := <-w.Events: case e := <-w.Events:
if filter(e) { if filter(e) {
wg.Add(1) wg.Add(1)
fmt.Printf("Noticed change to %s, re-generating spec\n", e.Name)
ch <- struct{}{} ch <- struct{}{}
} }
} }