mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
log inotify callback errors
This commit is contained in:
parent
42766da553
commit
0431be14fa
@ -650,6 +650,14 @@ class Uploader(QueueMixin):
|
||||
return relpath_u in self._pending
|
||||
|
||||
def _notify(self, opaque, path, events_mask):
|
||||
# Twisted doesn't seem to do anything if our callback throws
|
||||
# an error, so...
|
||||
try:
|
||||
return self._real_notify(opaque, path, events_mask)
|
||||
except Exception as e:
|
||||
self._log("error calling _real_notify: {}".format(e))
|
||||
|
||||
def _real_notify(self, opaque, path, events_mask):
|
||||
self._log("inotify event %r, %r, %r\n" % (opaque, path, ', '.join(self._inotify.humanReadableMask(events_mask))))
|
||||
relpath_u = self._get_relpath(path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user