What I said was 0.8.15 was really 0.8.16
[theonering] / src / handle.py
index b800fa5..0db35fe 100644 (file)
@@ -7,7 +7,7 @@ import tp
 import util.misc as misc_utils
 
 
-_moduleLogger = logging.getLogger("handle")
+_moduleLogger = logging.getLogger(__name__)
 
 
 class TheOneRingHandle(tp.Handle):
@@ -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