add regid when tracing selection
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Dec 2009 12:01:50 +0100
changeset 4026 d80a55a024d8
parent 4025 de69adda0781
child 4027 02273e65e1c2
add regid when tracing selection
selectors.py
--- a/selectors.py	Tue Dec 08 12:01:38 2009 +0100
+++ b/selectors.py	Tue Dec 08 12:01:50 2009 +0100
@@ -79,7 +79,7 @@
         ret = selector(cls, *args, **kwargs)
         if TRACED_OIDS == 'all' or oid in TRACED_OIDS:
             #SELECTOR_LOGGER.warning('selector %s returned %s for %s', selname, ret, cls)
-            print '%s -> %s for %s' % (selname, ret, vobj)
+            print '%s -> %s for %s(%s)' % (selname, ret, vobj, vobj.__regid__)
         return ret
     traced.__name__ = selector.__name__
     return traced