From 2c2ce248dc09bd5662f70714d673e590afa8280c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 23 Feb 2010 21:46:09 -0600 Subject: [PATCH] Reducing debug output --- src/handle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 1.7.9.5