summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-06-03 17:07:24 -0400
committerRob Crittenden <rcritten@redhat.com>2010-06-03 17:08:22 -0400
commit1dd7b11b0b5697f86f4d486fbe9509484ae2065a (patch)
tree8557e57432ea408b69dc6af27cc795c8db3716cc /ipalib/plugable.py
parent4924270b453655270da03b14f3e7825713820f0a (diff)
downloadfreeipa-1dd7b11b0b5697f86f4d486fbe9509484ae2065a.tar.gz
freeipa-1dd7b11b0b5697f86f4d486fbe9509484ae2065a.tar.xz
freeipa-1dd7b11b0b5697f86f4d486fbe9509484ae2065a.zip
Connect the -v cli argument to the verbose flag in xmlrpclib
If you pass two -v to the ipa command you'll get the XML-RPC data in the output. This can be handy so you know exactly what went out over the wire.
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index ded762d19..397004eb1 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -397,7 +397,7 @@ class API(DictProxy):
stderr = logging.StreamHandler()
if self.env.debug:
stderr.setLevel(logging.DEBUG)
- elif self.env.verbose:
+ elif self.env.verbose > 0:
stderr.setLevel(logging.INFO)
else:
stderr.setLevel(logging.WARNING)
@@ -444,8 +444,8 @@ class API(DictProxy):
parser.add_option('-d', '--debug', action='store_true',
help='Produce full debuging output',
)
- parser.add_option('-v', '--verbose', action='store_true',
- help='Produce more verbose output',
+ parser.add_option('-v', '--verbose', action='count',
+ help='Produce more verbose output. A second -v displays the XML-RPC request',
)
if context == 'cli':
parser.add_option('-a', '--prompt-all', action='store_true',