[Freeipa-devel] [PATCH] JSON client: Log pretty-printed request and response with -vv or above

Petr Viktorin pviktori at redhat.com
Wed Sep 24 11:58:40 UTC 2014


On 09/24/2014 01:50 PM, David Kupka wrote:
> On 09/23/2014 04:15 PM, Petr Viktorin wrote:
>> On 09/23/2014 03:13 PM, Petr Viktorin wrote:
>>> https://fedorahosted.org/freeipa/ticket/4233
>>
>> After talking to Rob, I've changed what the -v means a bit more:
>>
>> A single -v just turns on INFO logging, as before:
>>
>> $ ipa -v ping
>> ipa: INFO: trying https://vm-073.idm.lab.eng.brq.redhat.com/ipa/json
>> ipa: INFO: Forwarding 'ping' to json server
>> 'https://vm-073.idm.lab.eng.brq.redhat.com/ipa/json'
>> -----------------------------------------------------
>> IPA server version 4.0.0GIT8543d4c. API version 2.102
>> -----------------------------------------------------
>>
>> Two -v's pretty-print the request & response:
>>
[...]
>>
>> And three -v's print everything -- the pretty-printed JSON and all of
>> the HTTP communication.
>>
>> Also, when using XML-RPC, a single -v will now also print all the HTTP
>> stuff. It could respond to two -v's as before I don't think it's worth
>> complicating the code (keep in mind this is client only, XML-RPC is not
>> used unless requested in the env).
>>
>> This patch also updates the man page.

>
> Works for me, thanks, ACK.

Thanks!
Pushed to:
master: b7a6d7937efae894dad0c28759d01042b663ba30
ipa-4-1: 16ffb82195512bfba43b15e8f482a0d010c37bc1



-- 
Petr³




More information about the Freeipa-devel mailing list