Changeset 6ccd9f4 in trunk


Ignore:
Timestamp:
2019-03-14T15:23:16Z (7 years ago)
Author:
Jean-Paul Calderone <exarkun@…>
Branches:
master
Children:
331b962
Parents:
e822d43
git-author:
Jean-Paul Calderone <exarkun@…> (2019-02-27 16:47:59)
git-committer:
Jean-Paul Calderone <exarkun@…> (2019-03-14 15:23:16)
Message:

try to get some indication of fake behavior in the log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/util/fake_inotify.py

    re822d43 r6ccd9f4  
    7575
    7676
     77from eliot import start_action
     78
    7779# This class is not copied from Twisted; it acts as a mock.
    7880class INotify(object):
     
    9092
    9193    def event(self, filepath, mask):
    92         for cb in self.callbacks:
    93             cb(None, filepath, mask)
     94        with start_action(action_type=u"fake-inotify:event", path=filepath.path, mask=mask):
     95            for cb in self.callbacks:
     96                cb(None, filepath, mask)
    9497
    9598
Note: See TracChangeset for help on using the changeset viewer.