diff rdfdb/syncedgraph/autodepgraphapi.py @ 113:a9d49b297529

logging
author drewp@bigasterisk.com
date Wed, 01 Jun 2022 16:54:12 -0700
parents f05ae21c67c6
children bd3ae09e3312
line wrap: on
line diff
--- a/rdfdb/syncedgraph/autodepgraphapi.py	Mon May 30 23:01:50 2022 -0700
+++ b/rdfdb/syncedgraph/autodepgraphapi.py	Wed Jun 01 16:54:12 2022 -0700
@@ -67,7 +67,9 @@
         patch p just happened to the graph; call everyone back who
         might care, and then notice what data they depend on now
         """
-        for func in self._watchers.whoCares(p):
+        whoCares = self._watchers.whoCares(p)
+        log.debug(f'runDepsOnNewPatch: {len(whoCares)} handlers care')
+        for func in whoCares:
             # todo: forget the old handlers for this func
             log.debug('runDepsOnNewPatch calling watcher %s', p.shortSummary())
             self.addHandler(func)