summaryrefslogtreecommitdiff
path: root/qpid/python/run-tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-03-11 14:29:17 +0000
committerRafael H. Schloming <rhs@apache.org>2008-03-11 14:29:17 +0000
commit41519ccf105e29b5762f1e3b724a015a50128150 (patch)
treecbc969e6dc850480be38cc8f7a0eb73b12a021c2 /qpid/python/run-tests
parentaab8bdfcf3d279758124fc01213f33563a73040f (diff)
downloadqpid-python-41519ccf105e29b5762f1e3b724a015a50128150.tar.gz
added convenience API for turning on logging; added logging for controls and commands; made logging prettier
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@635939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/run-tests')
-rwxr-xr-xqpid/python/run-tests8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/python/run-tests b/qpid/python/run-tests
index 07162efd15..84b76ebfc1 100755
--- a/qpid/python/run-tests
+++ b/qpid/python/run-tests
@@ -20,14 +20,14 @@
import sys, logging
from qpid.testlib import testrunner
+from qpid.log import enable, WARN, DEBUG
if "-vv" in sys.argv:
- level = logging.DEBUG
+ level = DEBUG
else:
- level = logging.WARN
+ level = WARN
-format = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
-logging.basicConfig(level=level, format=format, datefmt='%H:%M:%S')
+enable("qpid", level)
if not testrunner.run(): sys.exit(1)