9
0
Fork 0

Ignore also DELETE_SELF as CLOSE_WRITE seems sufficent
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-11-06 21:50:44 +02:00
parent 6f9e5de0b6
commit 6e96d40584
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ async def watcher(loop, queue, coll):
return
lf = log_files[path] = LogFile(loop, coll, queue, path, namespace_name, pod_name, container_name)
lf.done = done
inotify.add_watch(path, Mask.MODIFY | Mask.CLOSE_WRITE | Mask.DELETE_SELF)
inotify.add_watch(path, Mask.MODIFY | Mask.CLOSE_WRITE)
return lf
inotify.add_watch(ROOT, Mask.CREATE | Mask.ONLYDIR)