fix crash without confs dir
@@ -127,7 +127,7 @@ func main() {
}
paths := getValidPath(conf.ConfsPath)
if len(paths) <= 0 {
- log.Fatalf("Cannot read or create any ConfsPath %v", conf.ConfsPath)
+ log.Warnf("Cannot read or create any ConfsPath %v", conf.ConfsPath)
}
if err = m.Watch(paths); err != nil {
log.Fatalf("watch path error %v", err)
