[Checkins] SVN: Sandbox/gotcha/five.taskqueue/trunk/src/five/taskqueue/startup.py better reporting when service cannot be started

Godefroid Chapelle cvs-admin at zope.org
Mon Nov 12 15:24:22 UTC 2012


Log message for revision 128245:
  better reporting when service cannot be started

Changed:
  U   Sandbox/gotcha/five.taskqueue/trunk/src/five/taskqueue/startup.py

-=-
Modified: Sandbox/gotcha/five.taskqueue/trunk/src/five/taskqueue/startup.py
===================================================================
--- Sandbox/gotcha/five.taskqueue/trunk/src/five/taskqueue/startup.py	2012-11-12 15:20:43 UTC (rev 128244)
+++ Sandbox/gotcha/five.taskqueue/trunk/src/five/taskqueue/startup.py	2012-11-12 15:24:22 UTC (rev 128245)
@@ -18,8 +18,8 @@
         site = getSite(siteName, root_folder)
         if site is None:
             continue
-        started = startOneService(site, serviceName)
-        if not started:
+        service = startOneService(site, serviceName)
+        if service and not service.isProcessing():
             msg = 'service %s from site %s was not started.'
             log.warn(msg % (serviceName, siteName))
         else:



More information about the checkins mailing list