fix output and config reload

This commit is contained in:
yusing
2024-03-14 02:46:01 +00:00
parent e14eeb914f
commit eee6ff4f15
6 changed files with 17 additions and 14 deletions

View File

@@ -64,7 +64,7 @@ func (p *Provider) grWatchFileChanges() {
case event.Has(fsnotify.Write):
p.Logf("Watcher", "file change detected")
p.StopAllRoutes()
p.BuildStartRoutes()
p.StartAllRoutes()
case event.Has(fsnotify.Remove), event.Has(fsnotify.Rename):
p.Logf("Watcher", "file renamed / deleted")
p.StopAllRoutes()