[Opensrf-commits] r2060 - trunk/src/python/osrf (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 9 08:59:57 EST 2010
Author: dbs
Date: 2010-11-09 08:59:55 -0500 (Tue, 09 Nov 2010)
New Revision: 2060
Modified:
trunk/src/python/osrf/server.py
Log:
More debuggery for the spawning of child processes
Modified: trunk/src/python/osrf/server.py
===================================================================
--- trunk/src/python/osrf/server.py 2010-11-09 13:50:43 UTC (rev 2059)
+++ trunk/src/python/osrf/server.py 2010-11-09 13:59:55 UTC (rev 2060)
@@ -138,6 +138,7 @@
def try_new_child(self, data):
''' Tries to spawn a new child to send request data to '''
+ osrf.log.log_debug("try_new_child: service=%s num_children=%s max_children=%s" % (self.service, self.num_children, self.max_children))
if self.num_children < self.max_children:
osrf.log.log_internal("spawning new child to handle data")
child = self.spawn_child(True)
@@ -220,6 +221,7 @@
def spawn_children(self):
''' Launches up to min_children child processes '''
+ osrf.log.log_debug("spawn_children: service=%s num_children=%s min_children=%s" % (self.service, self.num_children, self.min_children))
while self.num_children < self.min_children:
self.spawn_child()
@@ -236,7 +238,7 @@
self.active_list.insert(0, child)
else:
self.idle_list.insert(0, child)
- osrf.log.log_debug("spawned child %d : %d total" % (child.pid, self.num_children))
+ osrf.log.log_debug("service %s spawned child %d : %d total" % (self.service, child.pid, self.num_children))
return child
else:
child.pid = os.getpid()
More information about the opensrf-commits
mailing list