summaryrefslogtreecommitdiffstats
path: root/run_tests.py
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-02-22 09:59:53 +0000
committerTarmac <>2011-02-22 09:59:53 +0000
commite18f708135d7a9b0cf465ecc8df1b32252de6705 (patch)
treebf2513d51bf2b50fbe08efb22b2744086a416d4b /run_tests.py
parentd9f5f817175f8f9ee6554c02e10ddb730f97080d (diff)
parent11c57867ec18bd61dcc6bde0dc4b459318d54e70 (diff)
downloadnova-e18f708135d7a9b0cf465ecc8df1b32252de6705.tar.gz
nova-e18f708135d7a9b0cf465ecc8df1b32252de6705.tar.xz
nova-e18f708135d7a9b0cf465ecc8df1b32252de6705.zip
Fixes various issues regarding verbose logging and logging errors on import.
* Adds a call to logging.reset() after flags are loaded via FLAGS() * Uses logfile flag to log properly during run_tests * Only adds handlers to root logger * Removes the stream handler if logfile is set * Syslog handler is in addition to logfile or stream handler * Removed need for logging.basicConfig()
Diffstat (limited to 'run_tests.py')
-rw-r--r--run_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py
index 24786e8ad..6d96454b9 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -27,6 +27,7 @@ from nose import result
from nose import core
from nova import log as logging
+from nova.tests import fake_flags
class NovaTestResult(result.TextTestResult):
@@ -60,7 +61,7 @@ class NovaTestRunner(core.TextTestRunner):
if __name__ == '__main__':
- logging.basicConfig()
+ logging.setup()
c = config.Config(stream=sys.stdout,
env=os.environ,
verbosity=3,