Merge pull request #518 from grooverdan/process_file_called_twice

BF: prevent process_file being called in pyinotify backend on log rotati...
pull/401/head
Steven Hiscocks 2013-12-24 04:10:55 -08:00
commit 46c6915cec
1 changed files with 1 additions and 3 deletions

View File

@ -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)
##