mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-04 18:24:10 +02:00
Log on file updates
This commit is contained in:
parent
6e86cb34d2
commit
6ac519d9dc
|
|
@ -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{}{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue