# HG changeset patch
# User Zhengang Li <lizg(a)cn.ibm.com>
# Date 1207727823 25200
# Node ID f58194a3271fe20b19894c9f3472164316e1ee4c
# Parent b5857217c64a081450cd21219035084eac455d85
[TEST] redirect logging to /dev/null instead of stderr
The original default basicConfig() added a stderr Streamhandler.
The log is duplicated to both the stderr and the file log 'vsmtest.log'.
Outputting all the log to the screen makes the test less easier to read.
Signed-off-by: Zhengang Li <lizg(a)cn.ibm.com>
diff -r b5857217c64a -r f58194a3271f lib/CimTest/Globals.py
--- a/lib/CimTest/Globals.py Tue Apr 08 19:56:59 2008 -0700
+++ b/lib/CimTest/Globals.py Wed Apr 09 00:57:03 2008 -0700
@@ -50,7 +50,7 @@
CIM_PORT = "5988"
NM = "TEST LOG"
platform_sup = ["Xen", "KVM", "XenFV"]
-logging.basicConfig()
+logging.basicConfig(filename='/dev/null')
logger = logging.getLogger(NM)
logging.PRINT = logging.DEBUG + 50
logging.addLevelName(logging.PRINT, "PRINT")