summaryrefslogtreecommitdiffstats
path: root/ipalib/backend.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-09-23 12:10:56 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-09-24 13:57:56 +0200
commitb7a6d7937efae894dad0c28759d01042b663ba30 (patch)
tree4de09e980d2bdddf5aaebaf0f3d45ed2138d3e5a /ipalib/backend.py
parentccb91f5970537df6362ec7f41cded369b668e91a (diff)
downloadfreeipa-b7a6d7937efae894dad0c28759d01042b663ba30.tar.gz
freeipa-b7a6d7937efae894dad0c28759d01042b663ba30.tar.xz
freeipa-b7a6d7937efae894dad0c28759d01042b663ba30.zip
JSON client: Log pretty-printed request and response with -vv or above
The whole HTTP request is now printed with -vvv or above. Changes `verbose` in the connection to be the level from api.env, rather than a boolean value. For XML-RPC, the whole request will be shown already with -v. https://fedorahosted.org/freeipa/ticket/4233 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib/backend.py')
-rw-r--r--ipalib/backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py
index b94264236..210058981 100644
--- a/ipalib/backend.py
+++ b/ipalib/backend.py
@@ -113,7 +113,7 @@ class Executioner(Backend):
if self.env.in_server:
self.Backend.ldap2.connect(ccache=ccache)
else:
- self.Backend.rpcclient.connect(verbose=(self.env.verbose >= 2),
+ self.Backend.rpcclient.connect(verbose=self.env.verbose,
fallback=self.env.fallback, delegate=self.env.delegate)
if client_ip is not None:
setattr(context, "client_ip", client_ip)