[Checkins] SVN: Products.ZCatalog/trunk/src/Products/PluginIndexes/UUIDIndex/UUIDIndex.py Changing error logging

Patrick Gerken do3ccqrv at gmail.com
Sun Aug 28 15:46:33 EDT 2011


Log message for revision 122693:
  Changing error logging
  
  exception() and error() share the same error level but when calling 
  exception(), there should be an exception in sys.exc_info(). This is not 
  the case here 
  
  

Changed:
  U   Products.ZCatalog/trunk/src/Products/PluginIndexes/UUIDIndex/UUIDIndex.py

-=-
Modified: Products.ZCatalog/trunk/src/Products/PluginIndexes/UUIDIndex/UUIDIndex.py
===================================================================
--- Products.ZCatalog/trunk/src/Products/PluginIndexes/UUIDIndex/UUIDIndex.py	2011-08-25 15:32:22 UTC (rev 122692)
+++ Products.ZCatalog/trunk/src/Products/PluginIndexes/UUIDIndex/UUIDIndex.py	2011-08-28 19:46:32 UTC (rev 122693)
@@ -88,7 +88,7 @@
             self._index[entry] = documentId
             self._length.change(1)
         elif old_docid != documentId:
-            logger.exception("A different document with value '%s' already "
+            logger.error("A different document with value '%s' already "
                 "exists in the index.'" % entry)
 
     def removeForwardIndexEntry(self, entry, documentId):



More information about the checkins mailing list