mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Pretty print JSON in debug mode (debug level >= 2)
Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
b12b1e4c0b
commit
3cac0378e9
@@ -483,7 +483,9 @@ class jsonserver(WSGIExecutioner, HTTP_Status):
|
||||
principal=unicode(principal),
|
||||
version=unicode(VERSION),
|
||||
)
|
||||
dump = json_encode_binary(response, version)
|
||||
dump = json_encode_binary(
|
||||
response, version, pretty_print=self.api.env.debug >= 2
|
||||
)
|
||||
return dump.encode('utf-8')
|
||||
|
||||
def unmarshal(self, data):
|
||||
|
||||
Reference in New Issue
Block a user