diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-02-22 09:59:53 +0000 |
---|---|---|
committer | Tarmac <> | 2011-02-22 09:59:53 +0000 |
commit | e18f708135d7a9b0cf465ecc8df1b32252de6705 (patch) | |
tree | bf2513d51bf2b50fbe08efb22b2744086a416d4b /nova/service.py | |
parent | d9f5f817175f8f9ee6554c02e10ddb730f97080d (diff) | |
parent | 11c57867ec18bd61dcc6bde0dc4b459318d54e70 (diff) | |
download | nova-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 'nova/service.py')
-rw-r--r-- | nova/service.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/nova/service.py b/nova/service.py index 45286cf94..94efb1f2f 100644 --- a/nova/service.py +++ b/nova/service.py @@ -221,9 +221,6 @@ class Service(object): def serve(*services): - FLAGS(sys.argv) - logging.basicConfig() - if not services: services = [Service.create()] |