[Checkins] SVN: Zope/branches/2.9/ Issue #2218: bad 'error' argument to logger call.

Tres Seaver tseaver at palladion.com
Mon Oct 16 11:16:26 EDT 2006


Log message for revision 70697:
  Issue #2218: bad 'error' argument to logger call.

Changed:
  U   Zope/branches/2.9/doc/CHANGES.txt
  U   Zope/branches/2.9/lib/python/OFS/Cache.py

-=-
Modified: Zope/branches/2.9/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.9/doc/CHANGES.txt	2006-10-16 14:35:17 UTC (rev 70696)
+++ Zope/branches/2.9/doc/CHANGES.txt	2006-10-16 15:16:25 UTC (rev 70697)
@@ -7,14 +7,15 @@
 
   Zope 2.9.6 (unreleased)
 
-   Bugs fixed                                                                                
-    
+   Bugs fixed
+
+      - Collector #2218: fixed wrong logger argument in OFS/Cache.py
+
       - Collector #2205: fixed wrong logger argument in ZRDB/Connection.py
 
-      - Collector #2208: rewriting/setting the 'charset' part of the content-type
-        HTTP header will be done only for 'text/*'
+      - Collector #2208: rewriting/setting the 'charset' part of the
+        content-type HTTP header will be done only for 'text/*'
 
-
   Zope 2.9.5 (2006/10/03)
 
    Bugs fixed

Modified: Zope/branches/2.9/lib/python/OFS/Cache.py
===================================================================
--- Zope/branches/2.9/lib/python/OFS/Cache.py	2006-10-16 14:35:17 UTC (rev 70696)
+++ Zope/branches/2.9/lib/python/OFS/Cache.py	2006-10-16 15:16:25 UTC (rev 70697)
@@ -197,7 +197,7 @@
                                    mtime_func, default)
                 return val
             except:
-                logger.warn('ZCache_get() exception', error=sys.exc_info())
+                logger.warn('ZCache_get() exception', exc_info=sys.exc_info())
                 return default
         return default
 
@@ -214,7 +214,7 @@
                 c.ZCache_set(ob, data, view_name, keywords,
                              mtime_func)
             except:
-                logger.warn('ZCache_set() exception', error=sys.exc_info())
+                logger.warn('ZCache_set() exception', exc_info=sys.exc_info())
 
     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', error=exc)
+                    logger.warn('ZCache_invalidate() exception', exc_info=exc)
                     message = 'An exception occurred: %s: %s' % exc[:2]
                 finally:
                     exc = None



More information about the Checkins mailing list