fix(watcher): do not emit fatal errors (#2410)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-05-26 14:48:30 +02:00 committed by GitHub
parent 593fb62bf0
commit db3113c5c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,8 +71,7 @@ func (c *configFileHandler) Watch() error {
configWatcher, err := fsnotify.NewWatcher()
c.watcher = configWatcher
if err != nil {
log.Fatal().Err(err).Str("configdir", c.appConfig.DynamicConfigsDir).Msg("unable to create a watcher for configuration directory")
return err
}
if c.appConfig.DynamicConfigsDirPollInterval > 0 {