enhance warning message to ease debugging tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 12 May 2009 17:16:05 +0200
branchtls-sprint
changeset 1748 aa1806e76699
parent 1747 d48613e65196
child 1749 b61dc3e5dca5
enhance warning message to ease debugging
rtags.py
--- a/rtags.py	Tue May 12 17:15:41 2009 +0200
+++ b/rtags.py	Tue May 12 17:16:05 2009 +0200
@@ -50,11 +50,11 @@
 
     def init(self, schema):
         # XXX check existing keys against schema
-        for rtype, tagged, stype, otype in self._tagdefs.keys():
+        for (rtype, tagged, stype, otype), value in self._tagdefs.items():
             for ertype in (stype, rtype, otype):
                 if ertype != '*' and not ertype in schema:
-                    self.warning('removing rtag for %s, undefined in schema',
-                                 ertype)
+                    self.warning('removing rtag %s: %s, %s undefined in schema',
+                                 (stype, rtype, otype, tagged), value, ertype)
                     self.del_rtag(stype, rtype, otype, tagged)
         if self._initfunc is not None:
             for eschema in schema.entities():