[Zope3-checkins] CVS: Zope3 - test.py:1.24

Guido van Rossum guido@python.org
Thu, 19 Dec 2002 14:33:03 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv18710

Modified Files:
	test.py 
Log Message:
Primitive initialization for the logging module.  For now, everything
below critical is ignored; critical is always logged.  We need a
command line option to allow more flexible configuration.


=== Zope3/test.py 1.23 => 1.24 ===
--- Zope3/test.py:1.23	Thu Dec 19 13:33:07 2002
+++ Zope3/test.py	Thu Dec 19 14:33:02 2002
@@ -397,6 +397,13 @@
 def main(module_filter, test_filter):
     os.path.walk(os.curdir, remove_stale_bytecode, None)
     setup_path()
+
+    # Initialize the logging module.
+    # XXX Should allow command line control.
+    import logging
+    logging.basicConfig()
+    logging.root.setLevel(logging.CRITICAL)
+
     files = find_tests(module_filter)
     files.sort()