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:
|
||||
counter_inotify_events.labels("modify").inc()
|
||||
log_file = log_files.get(str(event.path))
|
||||
assert not log_file.done
|
||||
log_file.poke()
|
||||
if log_file:
|
||||
# TODO: Count cases where log_file is None
|
||||
log_file.poke()
|
||||
elif event.mask & Mask.IGNORED:
|
||||
counter_inotify_events.labels("ignored").inc()
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue