Permalink
Browse files

A smidgen of extra logging in the updater

  • Loading branch information...
1 parent 592acf0 commit 5353d088bb9a41d175260b62c610ffc29bcb23cb @batterseapower batterseapower committed Nov 23, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 pinyin/updater.py
View
@@ -43,6 +43,8 @@ def updatefact(self, fact, value, alwaysreformat=False):
fact[self.field] = self.reformatter.reformatfield(self.field, graph, alwaysreformat=alwaysreformat)
graph[self.field] = (False, utils.Thunk(lambda: fact[self.field]))
+ log.info("Keys in the graph after update: %r", graph.keys())
+
for field in fact:
if shouldupdatefield(self.graphbasedupdater.config)(field):
fact[field] = (graph[field][0] and factproxy.markgeneratedfield or (lambda x: x))(graph[field][1]())

0 comments on commit 5353d08

Please sign in to comment.