[Zope-CVS] CVS: Products/QueueCatalog - Processor.py:1.5

Chris McDonough chrism at zope.com
Wed Aug 6 18:14:59 EDT 2003


Update of /cvs-repository/Products/QueueCatalog
In directory cvs.zope.org:/tmp/cvs-serv20901

Modified Files:
	Processor.py 
Log Message:
Fix missing import and log more information.


=== Products/QueueCatalog/Processor.py 1.4 => 1.5 ===
--- Products/QueueCatalog/Processor.py:1.4	Fri Jul 11 14:10:56 2003
+++ Products/QueueCatalog/Processor.py	Wed Aug  6 17:14:55 2003
@@ -18,7 +18,8 @@
 import thread
 import Zope
 from time import sleep
-from zLOG import LOG, ERROR, PANIC
+import sys
+from zLOG import LOG, ERROR, PANIC, INFO
 
 class Processor:
     """Simple thread that processes queued catalog events
@@ -30,6 +31,7 @@
         thread.start_new_thread(self.live, ())
 
     def live(self):
+        LOG('QueuedCatalog', INFO, 'Set up to process queue entries')
         while 1:
             sleep(self._interval)
             for queue_catalog_path in self._queue_catalog_paths:
@@ -50,8 +52,10 @@
                         LOG('QueuedCatalog', ERROR, 'Queue processing failed',
                             error=sys.exc_info())
 
+                    else:
+                        LOG('QueuedCatalog', INFO, 'Processed queue')
+                    
                     application._p_jar.close()
-
 
 __doc__ = Processor.__doc__ + __doc__
 




More information about the Zope-CVS mailing list