diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-03-11 14:29:17 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-03-11 14:29:17 +0000 |
| commit | 41519ccf105e29b5762f1e3b724a015a50128150 (patch) | |
| tree | cbc969e6dc850480be38cc8f7a0eb73b12a021c2 /qpid/python/run-tests | |
| parent | aab8bdfcf3d279758124fc01213f33563a73040f (diff) | |
| download | qpid-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-x | qpid/python/run-tests | 8 |
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) |
