[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/publication/zopepublication.py Don't include useless traceback in conflict warnings.

Jim Fulton jim at zope.com
Tue May 1 10:34:34 EDT 2007


Log message for revision 74962:
  Don't include useless traceback in conflict warnings.
  

Changed:
  U   Zope3/trunk/src/zope/app/publication/zopepublication.py

-=-
Modified: Zope3/trunk/src/zope/app/publication/zopepublication.py
===================================================================
--- Zope3/trunk/src/zope/app/publication/zopepublication.py	2007-05-01 11:50:25 UTC (rev 74961)
+++ Zope3/trunk/src/zope/app/publication/zopepublication.py	2007-05-01 14:34:33 UTC (rev 74962)
@@ -253,10 +253,13 @@
 
         # Convert ConflictErrors to Retry exceptions.
         if retry_allowed and isinstance(exc_info[1], ConflictError):
-            tryToLogWarning('ZopePublication',
-                'Competing writes/reads at %s' %
-                request.get('PATH_INFO', '???'),
-                exc_info=True)
+            tryToLogWarning(
+                'ZopePublication',
+                'Competing writes/reads at %s: %s'
+                % (request.get('PATH_INFO', '???'),
+                   exc_info[1],
+                   ),
+                )
             raise Retry(exc_info)
         # Are there any reasons why we'd want to let application-level error
         # handling determine whether a retry is allowed or not?



More information about the Zope3-Checkins mailing list