From 8894c48314aa35230635af3f4ae8814234ae3fa1 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 19 Jun 2010 16:11:55 -0500 Subject: [PATCH] Reducing log noise --- src/gvoice/conversations.py | 16 ---------------- src/util/go_utils.py | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/gvoice/conversations.py b/src/gvoice/conversations.py index ed10b9c..c62550d 100644 --- a/src/gvoice/conversations.py +++ b/src/gvoice/conversations.py @@ -54,13 +54,6 @@ class Conversations(object): _moduleLogger.info("%s Loaded cache" % (self._name, )) self._conversations = convs self._loadedFromCache = True - for key, mergedConv in self._conversations.iteritems(): - _moduleLogger.debug("%s \tLoaded %s" % (self._name, key)) - for conv in mergedConv.conversations: - message = "%s \t\tLoaded %s (%r) %r %r %r" % ( - self._name, conv.id, conv.time, conv.isRead, conv.isArchived, len(conv.messages) - ) - _moduleLogger.debug(message) else: _moduleLogger.debug( "%s Skipping cache due to version mismatch (%s-%s)" % ( @@ -80,15 +73,6 @@ class Conversations(object): pickle.dump(dataToDump, f, pickle.HIGHEST_PROTOCOL) except (pickle.PickleError, IOError): _moduleLogger.exception("While saving for %s" % self._name) - - for key, mergedConv in self._conversations.iteritems(): - _moduleLogger.debug("%s \tSaving %s" % (self._name, key)) - for conv in mergedConv.conversations: - message = "%s \t\tSaving %s (%r) %r %r %r" % ( - self._name, conv.id, conv.time, conv.isRead, conv.isArchived, len(conv.messages) - ) - _moduleLogger.debug(message) - _moduleLogger.info("%s Cache saved" % (self._name, )) def update(self, force=False): diff --git a/src/util/go_utils.py b/src/util/go_utils.py index 20ccac1..46805ab 100644 --- a/src/util/go_utils.py +++ b/src/util/go_utils.py @@ -213,7 +213,7 @@ class AsyncLinearExecution(object): @misc.log_exception(_moduleLogger) def on_success(self, result): - _moduleLogger.debug("Processing success for: %r", self._func) + #_moduleLogger.debug("Processing success for: %r", self._func) try: trampoline, args, kwds = self._run.send(result) except StopIteration, e: @@ -229,7 +229,7 @@ class AsyncLinearExecution(object): @misc.log_exception(_moduleLogger) def on_error(self, error): - _moduleLogger.debug("Processing error for: %r", self._func) + #_moduleLogger.debug("Processing error for: %r", self._func) try: trampoline, args, kwds = self._run.throw(error) except StopIteration, e: -- 1.7.9.5