mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
try to get some indication of fake behavior in the log
This commit is contained in:
parent
e822d43808
commit
6ccd9f4b44
@ -74,6 +74,8 @@ def humanReadableMask(mask):
|
|||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
||||||
|
from eliot import start_action
|
||||||
|
|
||||||
# This class is not copied from Twisted; it acts as a mock.
|
# This class is not copied from Twisted; it acts as a mock.
|
||||||
class INotify(object):
|
class INotify(object):
|
||||||
def startReading(self):
|
def startReading(self):
|
||||||
@ -89,6 +91,7 @@ class INotify(object):
|
|||||||
self.callbacks = callbacks
|
self.callbacks = callbacks
|
||||||
|
|
||||||
def event(self, filepath, mask):
|
def event(self, filepath, mask):
|
||||||
|
with start_action(action_type=u"fake-inotify:event", path=filepath.path, mask=mask):
|
||||||
for cb in self.callbacks:
|
for cb in self.callbacks:
|
||||||
cb(None, filepath, mask)
|
cb(None, filepath, mask)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user