diff options
author | Dan Williams <dcbw@localhost.localdomain> | 2006-09-25 17:24:27 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@localhost.localdomain> | 2006-09-25 17:24:27 (GMT) |
commit | e89c88b191b8013763fb265daf655488309c15e5 (patch) | |
tree | ade4bde21bae3a05b712b27bfd3cdb3bbc9c1ee3 | |
parent | 5e3d56fe77439b0399d9ff62beb6169be482fffc (diff) |
Fix location of cache debug prints
-rw-r--r-- | services/presence/Buddy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/presence/Buddy.py b/services/presence/Buddy.py index 2c5d9b6..18209fe 100644 --- a/services/presence/Buddy.py +++ b/services/presence/Buddy.py @@ -151,6 +151,7 @@ class Buddy(object): if icon and len(icon): icon = base64.b64decode(icon) self._set_icon(icon) + logging.debug("%s: adding retrieved icon to cache." % self._nick_name) self._icon_cache.add_icon(icon) if (result_status == network.RESULT_FAILED or not icon) and self._icon_tries < 3: @@ -172,8 +173,8 @@ class Buddy(object): logging.debug("%s: icon cache hit for %s." % (self._nick_name, icon_hash)) self._set_icon(icon) return False + logging.debug("%s: icon cache miss, fetching icon from buddy..." % self._nick_name) - logging.debug("%s: icon cache miss, adding icon to cache." % self._nick_name) from sugar.p2p import Stream buddy_stream = Stream.Stream.new_from_service(service, start_reader=False) writer = buddy_stream.new_writer(service) |