summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEwan Mellor <emellor@silver>2010-10-04 18:11:18 +0000
committerTarmac <>2010-10-04 18:11:18 +0000
commit8a526ab99998c68a51981a60068f5abdb7f23c47 (patch)
tree8cf7b31570e5b75e7d2b78cbb130b33896efc33b
parent104940614784c69ed3d17581ff2cb1ed344eaa0f (diff)
parenta0498717e470eb6fd52a4f26101c3513d90a3974 (diff)
Honour the --verbose flag by setting the logging level to DEBUG.
-rwxr-xr-xbin/nova-manage5
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>]"