reduce watcher log redundancy
This commit is contained in:
parent
50e92ccf04
commit
454e8fa5b0
|
@ -39,7 +39,7 @@ func WatchDirectory(config DirectoryWatcherConfig, manager *WatcherManager) (*Wa
|
|||
manager: manager,
|
||||
}
|
||||
|
||||
config.Log.Info("Started watching directory: %s", config.Dir)
|
||||
config.Log.Debug("Started watching directory: %s", config.Dir)
|
||||
return w, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@ func setupWatchers(luaRouter *routers.LuaRouter, staticRouter *routers.StaticRou
|
|||
log.Warning("Failed to watch routes directory: %v", err)
|
||||
} else {
|
||||
cleanupFuncs = append(cleanupFuncs, luaRouterWatcher.Close)
|
||||
log.Info("File watcher active for Lua routes")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,7 +91,6 @@ func setupWatchers(luaRouter *routers.LuaRouter, staticRouter *routers.StaticRou
|
|||
log.Warning("Failed to watch static directory: %v", err)
|
||||
} else {
|
||||
cleanupFuncs = append(cleanupFuncs, staticWatcher.Close)
|
||||
log.Info("File watcher active for static files")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -158,7 +156,7 @@ func main() {
|
|||
// Get library directories
|
||||
var libDirs []string
|
||||
libDirsConfig := cfg.GetStringArray("lib_dirs")
|
||||
if libDirsConfig != nil && len(libDirsConfig) > 0 {
|
||||
if len(libDirsConfig) > 0 {
|
||||
libDirs = libDirsConfig
|
||||
} else {
|
||||
// Default lib directory
|
||||
|
|
Loading…
Reference in New Issue
Block a user