[Zope3-checkins] CVS: Zope3/lib/python/ZEO/tests - forker.py:1.19

Tim Peters tim.one@comcast.net
Thu, 19 Dec 2002 15:37:47 -0500


Update of /cvs-repository/Zope3/lib/python/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv27789/lib/python/ZEO/tests

Modified Files:
	forker.py 
Log Message:
More logging.


=== Zope3/lib/python/ZEO/tests/forker.py 1.18 => 1.19 ===
--- Zope3/lib/python/ZEO/tests/forker.py:1.18	Mon Dec 16 16:11:52 2002
+++ Zope3/lib/python/ZEO/tests/forker.py	Thu Dec 19 15:37:46 2002
@@ -21,8 +21,7 @@
 import socket
 import tempfile
 import traceback
-
-import zLOG
+import logging
 
 # Change value of PROFILE to enable server-side profiling
 PROFILE = False
@@ -86,16 +85,16 @@
     s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     for i in range(5):
         try:
-            zLOG.LOG('forker', zLOG.DEBUG, 'connect %s' % i)
+            logging.debug('forker: connect %s', i)
             s.connect(adminaddr)
             ack = s.recv(1024)
-            zLOG.LOG('forker', zLOG.DEBUG, 'acked: %s' % ack)
+            logging.debug('forker: acked: %s', ack)
             break
         except socket.error, e:
             if e[0] <> errno.ECONNREFUSED: raise
             time.sleep(1)
     else:
-        zLOG.LOG('forker', zLOG.DEBUG, 'boo hoo')
+        logging.debug('forker: boo hoo')
         raise
     return ('localhost', port), adminaddr, pid
 
@@ -108,5 +107,5 @@
     except socket.error, e:
         if e[0] <> errno.ECONNRESET: raise
         ack = 'no ack received'
-    zLOG.LOG('shutdownServer', zLOG.DEBUG, 'acked: %s' % ack)
+    logging.debug('shutdownServer: acked: %s', ack)
     s.close()