Add cornercase handling for MODIFY
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
6e96d40584
commit
5b5b76c534
|
@ -377,8 +377,9 @@ async def watcher(loop, queue, coll):
|
||||||
elif event.mask & Mask.MODIFY:
|
elif event.mask & Mask.MODIFY:
|
||||||
counter_inotify_events.labels("modify").inc()
|
counter_inotify_events.labels("modify").inc()
|
||||||
log_file = log_files.get(str(event.path))
|
log_file = log_files.get(str(event.path))
|
||||||
assert not log_file.done
|
if log_file:
|
||||||
log_file.poke()
|
# TODO: Count cases where log_file is None
|
||||||
|
log_file.poke()
|
||||||
elif event.mask & Mask.IGNORED:
|
elif event.mask & Mask.IGNORED:
|
||||||
counter_inotify_events.labels("ignored").inc()
|
counter_inotify_events.labels("ignored").inc()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue