[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/OFS/Cache.py
Better fix for #2218.
Tres Seaver
tseaver at palladion.com
Mon Oct 16 11:24:17 EDT 2006
Log message for revision 70698:
Better fix for #2218.
Changed:
U Zope/branches/2.9/lib/python/OFS/Cache.py
-=-
Modified: Zope/branches/2.9/lib/python/OFS/Cache.py
===================================================================
--- Zope/branches/2.9/lib/python/OFS/Cache.py 2006-10-16 15:16:25 UTC (rev 70697)
+++ Zope/branches/2.9/lib/python/OFS/Cache.py 2006-10-16 15:24:16 UTC (rev 70698)
@@ -197,7 +197,7 @@
mtime_func, default)
return val
except:
- logger.warn('ZCache_get() exception', exc_info=sys.exc_info())
+ logger.warn('ZCache_get() exception', exc_info=True)
return default
return default
@@ -214,7 +214,7 @@
c.ZCache_set(ob, data, view_name, keywords,
mtime_func)
except:
- logger.warn('ZCache_set() exception', exc_info=sys.exc_info())
+ logger.warn('ZCache_set() exception', exc_info=True)
def ZCacheable_invalidate(self, view_name='', REQUEST=None):
'''Called after a cacheable object is edited. Causes all
@@ -231,7 +231,7 @@
except:
exc = sys.exc_info()
try:
- logger.warn('ZCache_invalidate() exception', exc_info=exc)
+ logger.warn('ZCache_invalidate() exception', exc_info=True)
message = 'An exception occurred: %s: %s' % exc[:2]
finally:
exc = None
More information about the Zope-Checkins
mailing list