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,6 +64,7 @@ func ListenConfigChanges() {
if err != nil {
glog.Fatalf("[Config] unable to read config: %v", err)
}
StartAllRoutes()
case event.Has(fsnotify.Remove), event.Has(fsnotify.Rename):
glog.Fatalf("[Config] file renamed / deleted")
}