Skip to content

Commit db3113c

Browse files
authored
fix(watcher): do not emit fatal errors (#2410)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 593fb62 commit db3113c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/startup/config_file_watcher.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ func (c *configFileHandler) Watch() error {
7171
configWatcher, err := fsnotify.NewWatcher()
7272
c.watcher = configWatcher
7373
if err != nil {
74-
log.Fatal().Err(err).Str("configdir", c.appConfig.DynamicConfigsDir).Msg("unable to create a watcher for configuration directory")
75-
74+
return err
7675
}
7776

7877
if c.appConfig.DynamicConfigsDirPollInterval > 0 {

0 commit comments

Comments
 (0)