Skip to content

Commit

Permalink
fix(watcher): do not emit fatal errors (mudler#2410)
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored May 26, 2024
1 parent 593fb62 commit db3113c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/startup/config_file_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit db3113c

Please sign in to comment.