[Zope3-checkins] CVS: Zope3/lib/python/ZEO/tests - zeoserver.py:1.3

Guido van Rossum guido@python.org
Thu, 19 Dec 2002 15:35:53 -0500


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

Modified Files:
	zeoserver.py 
Log Message:
Stop "No handler found" messages from logging module.


=== Zope3/lib/python/ZEO/tests/zeoserver.py 1.2 => 1.3 ===
--- Zope3/lib/python/ZEO/tests/zeoserver.py:1.2	Mon Dec 16 18:08:21 2002
+++ Zope3/lib/python/ZEO/tests/zeoserver.py	Thu Dec 19 15:35:53 2002
@@ -19,6 +19,7 @@
 import getopt
 import random
 import socket
+import logging
 import asyncore
 import ThreadedAsync.LoopCallback
 
@@ -108,6 +109,13 @@
 
 
 def main():
+
+    # Initialize the logging module.
+    # XXX Should allow finer control through environment.
+    import logging
+    logging.basicConfig()
+    logging.root.setLevel(logging.CRITICAL)
+
     label = 'zeoserver:%d' % os.getpid()
     log(label, 'starting')
     # We don't do much sanity checking of the arguments, since if we get it