Skip to content

Commit 2eb2b90

Browse files
committed
config filewatcher listen on create events
1 parent d688c5d commit 2eb2b90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/go/config/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (c *ConfigFileImpl) startFileWatcher() {
188188
return
189189
}
190190
log.Debug().Msgf("Config file watcher event: %+v", event)
191-
if event.Has(fsnotify.Write) || event.Has(fsnotify.Chmod) {
191+
if event.Has(fsnotify.Create) || event.Has(fsnotify.Write) || event.Has(fsnotify.Chmod) {
192192
log.Info().Str("event", event.Name).Msgf("modified config file")
193193
_, err := c.loadConfig()
194194
if err != nil {

0 commit comments

Comments
 (0)