[Checkins] SVN: Zope/branches/2.10/ Repaired malformed call to logging.warn.

Stefan H. Holek stefan at epy.co.at
Sun Aug 27 09:44:45 EDT 2006


Log message for revision 69793:
  Repaired malformed call to logging.warn.
  Fixes http://www.zope.org/Collectors/Zope/2176
  

Changed:
  U   Zope/branches/2.10/doc/CHANGES.txt
  U   Zope/branches/2.10/lib/python/OFS/Application.py

-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.10/doc/CHANGES.txt	2006-08-27 13:22:31 UTC (rev 69792)
+++ Zope/branches/2.10/doc/CHANGES.txt	2006-08-27 13:44:44 UTC (rev 69793)
@@ -8,6 +8,8 @@
 
     Bugs fixed
 
+      - Collector #2176: Fixed bad logging call.
+
       - Collector #1907: Moved 'alt' property from File to Image.
 
       - Collector #1983: Specifying session-resolution-seconds >= 1200 caused

Modified: Zope/branches/2.10/lib/python/OFS/Application.py
===================================================================
--- Zope/branches/2.10/lib/python/OFS/Application.py	2006-08-27 13:22:31 UTC (rev 69792)
+++ Zope/branches/2.10/lib/python/OFS/Application.py	2006-08-27 13:44:44 UTC (rev 69793)
@@ -671,9 +671,9 @@
 
     for priority, product_name, index, product_dir in products:
         if done.has_key(product_name):
-            LOG.warn('Duplicate Product name',
-                     'After loading Product %s from %s,\n'
-                     'I skipped the one in %s.\n' % (
+            LOG.warn('Duplicate Product name: '
+                     'After loading Product %s from %s, '
+                     'I skipped the one in %s.' % (
                     `product_name`, `done[product_name]`, `product_dir`) )
             continue
         done[product_name]=product_dir



More information about the Checkins mailing list