From: Ed Page Date: Wed, 24 Feb 2010 03:46:09 +0000 (-0600) Subject: Reducing debug output X-Git-Url: http://git.maemo.org/git/?p=theonering;a=commitdiff_plain;h=2c2ce248dc09bd5662f70714d673e590afa8280c Reducing debug output --- diff --git a/src/handle.py b/src/handle.py index cfbcecc..0db35fe 100644 --- a/src/handle.py +++ b/src/handle.py @@ -84,8 +84,9 @@ def create_handle_factory(): cache[key] = handle isNewHandle = True connection._handles[handle.get_type(), handle.get_id()] = handle - handleStatus = "Is New!" if isNewHandle else "From Cache" - _moduleLogger.debug("Created Handle: %r (%s)" % (handle, handleStatus)) + if isNewHandle: + handleStatus = "Is New!" if isNewHandle else "From Cache" + _moduleLogger.debug("Created Handle: %r (%s)" % (handle, handleStatus)) return handle return _create_handle