def _fsmonitorwalk(self, match): fsmonitorevent = {} try: with util.traced("fsmonitor::walk") as span: return _walk(self, match, fsmonitorevent, span) finally: try: blackbox.log({"fsmonitor": fsmonitorevent}) except UnicodeDecodeError: # test-adding-invalid-utf8.t hits this path pass
def _command(self, *args): with util.traced("watchman-command", args=json.dumps(args[1:])) as span: return self._retrycommand(span, 0, *args)