mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-29 20:18:37 +01: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:
|
||||
if filter(e) {
|
||||
wg.Add(1)
|
||||
fmt.Printf("Noticed change to %s, re-generating spec\n", e.Name)
|
||||
ch <- struct{}{}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue