From b0ea5698b3eecdd6233e579c7c7319513c59dda8 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 23 Dec 2013 09:18:32 +0000 Subject: [PATCH] BF: prevent process_file being called in pyinotify backend on log rotation. Closes gh-512 --- server/filterpyinotify.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/filterpyinotify.py b/server/filterpyinotify.py index cea82711..9ecb999d 100644 --- a/server/filterpyinotify.py +++ b/server/filterpyinotify.py @@ -115,9 +115,6 @@ class FilterPyinotify(FileFilter): wd = self.__monitor.add_watch(path, pyinotify.IN_MODIFY) self.__watches.update(wd) logSys.debug("Added file watcher for %s", path) - # process the file since we did get even - self._process_file(path) - def _delFileWatcher(self, path): wdInt = self.__watches[path] @@ -143,6 +140,7 @@ class FilterPyinotify(FileFilter): logSys.debug("Added monitor for the parent directory %s", path_dir) self._addFileWatcher(path) + self._process_file(path) ##