[kupfer] Reduce debug output for resolving puid



commit f2f0bdb99a095b9169aada3942da32840f028bad
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Jan 8 03:54:28 2010 +0100

    Reduce debug output for resolving puid

 kupfer/plugin/favorites.py |    1 -
 kupfer/puid.py             |    3 +--
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/plugin/favorites.py b/kupfer/plugin/favorites.py
index ac308c6..025ffb8 100644
--- a/kupfer/plugin/favorites.py
+++ b/kupfer/plugin/favorites.py
@@ -77,7 +77,6 @@ class FavoritesSource (Source, PicklingHelperMixin):
 				self.favorites.append(self.reference_table[id_])
 				continue
 			itm = self._find_item(id_)
-			self.output_debug("RELOOKUP:", id_)
 			if itm is None:
 				self.output_debug("MISSING:", id_)
 			else:
diff --git a/kupfer/puid.py b/kupfer/puid.py
index 497e5c2..7a95375 100644
--- a/kupfer/puid.py
+++ b/kupfer/puid.py
@@ -93,11 +93,9 @@ def resolve_unique_id(puid, excluding=None):
 	sc = data.GetSourceController()
 	obj = _find_obj_in_catalog(puid, sc._pre_root)
 	if obj is not None:
-		pretty.print_debug(__name__, "Resolving %s to %s" % (puid, obj))
 		return obj
 	other_sources = set(sc.sources) - set(sc._pre_root)
 	obj = _find_obj_in_catalog(puid, other_sources)
-	pretty.print_debug(__name__, "Resolving %s to %s" % (puid, obj))
 	return obj
 
 def resolve_action_id(puid, for_item=None):
@@ -117,4 +115,5 @@ def resolve_action_id(puid, for_item=None):
 			if get_action_id(action) == puid:
 				pretty.print_debug(__name__, "Resolving (Decorator)", puid)
 				return action
+	pretty.print_debug(__name__, "Unable to resolve %s (%s)" % (puid, for_item))
 	return None



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]