Adding logging of caches so I can see if they are causing the blocking
authorEd Page <eopage@byu.net>
Sat, 13 Mar 2010 16:38:45 +0000 (10:38 -0600)
committerEd Page <eopage@byu.net>
Sat, 13 Mar 2010 16:38:45 +0000 (10:38 -0600)
src/gvoice/conversations.py

index 5f3d371..8d61a58 100644 (file)
@@ -47,6 +47,7 @@ class Conversations(object):
                        self.OLDEST_COMPATIBLE_FORMAT_VERSION,
                        misc_utils.parse_version(fileVersion),
                ) <= 0:
+                       _moduleLogger.info("%s Loaded cache" % (self._name, ))
                        self._conversations = convs
                else:
                        _moduleLogger.debug(
@@ -57,6 +58,7 @@ class Conversations(object):
 
        def save(self, path):
                try:
+                       _moduleLogger.info("%s Saving cache" % (self._name, ))
                        for conv in self._conversations.itervalues():
                                conv.compress(self.OLDEST_MESSAGE_WINDOW)
                        dataToDump = (constants.__version__, constants.__build__, self._conversations)