X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Fhandle.py;h=0db35fe033438e6580808cd8e065fe8aadb8cefb;hp=cfbceccfd11aea1fe9ae07c1e0d921cf6677ffec;hb=013fc091b26c448800719a13ecd1f18d9eb8b7d2;hpb=548c58651ec7849619b9d823fdeee169be6c87b5 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