diff options
| author | Ewan Mellor <emellor@silver> | 2010-10-04 18:11:18 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-10-04 18:11:18 +0000 |
| commit | 8a526ab99998c68a51981a60068f5abdb7f23c47 (patch) | |
| tree | 8cf7b31570e5b75e7d2b78cbb130b33896efc33b /bin | |
| parent | 104940614784c69ed3d17581ff2cb1ed344eaa0f (diff) | |
| parent | a0498717e470eb6fd52a4f26101c3513d90a3974 (diff) | |
Honour the --verbose flag by setting the logging level to DEBUG.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index bf3c67612..ce87b9437 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -52,6 +52,7 @@ CLI interface for nova management. """ +import logging import os import sys import time @@ -417,6 +418,10 @@ def main(): """Parse options and call the appropriate class/method.""" utils.default_flagfile('/etc/nova/nova-manage.conf') argv = FLAGS(sys.argv) + + if FLAGS.verbose: + logging.getLogger().setLevel(logging.DEBUG) + script_name = argv.pop(0) if len(argv) < 1: print script_name + " category action [<args>]" |
