Log message for revision 67270:
  replaced zLOG with logging module
  

Changed:
  U   Products.Five/trunk/CHANGES.txt
  U   Products.Five/trunk/fiveconfigure.py

-=-
Modified: Products.Five/trunk/CHANGES.txt
===================================================================
--- Products.Five/trunk/CHANGES.txt     2006-04-22 14:03:58 UTC (rev 67269)
+++ Products.Five/trunk/CHANGES.txt     2006-04-22 14:55:51 UTC (rev 67270)
@@ -14,6 +14,8 @@
 * Fixed a problem with the new traversal look-up order and the root
   object (OFS.Application.Application).
 
+* fiveconfigure.py: replaced zLOG with logging module
+
 Five 1.4b (2006-03-31)
 ======================
 

Modified: Products.Five/trunk/fiveconfigure.py
===================================================================
--- Products.Five/trunk/fiveconfigure.py        2006-04-22 14:03:58 UTC (rev 
67269)
+++ Products.Five/trunk/fiveconfigure.py        2006-04-22 14:55:51 UTC (rev 
67270)
@@ -21,10 +21,10 @@
 import sys
 import glob
 import warnings
+import logging
 
 import App.config
 import Products
-from zLOG import LOG, ERROR
 
 from zope.interface import classImplements, classImplementsOnly, implementedBy
 from zope.interface.interface import InterfaceClass
@@ -43,6 +43,7 @@
 from Products.Five.browser.metaconfigure import page
 
 debug_mode = App.config.getConfiguration().debug_mode
+LOG = logging.getLogger('Five')
 
 def findProducts():
     import Products
@@ -63,7 +64,7 @@
     # in the control panel. However, all attempts to do so has failed from my 
     # side. //regebro
     exc = sys.exc_info()
-    LOG('Five', ERROR, 'Could not import Product %s' % product.__name__, 
error=exc)
+    LOG.error('Could not import Product %s' % product.__name__, exc_info=exc)
 
 def loadProducts(_context, file=None):
     if file is None:

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to