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:

$ ipa -vv 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: INFO: Request: {
     "id": 0,
     "method": "ping",
     "params": [
         [],
         {
             "version": "2.102"
         }
     ]
}
ipa: INFO: Response: {
     "error": null,
     "id": 0,
     "principal": "ad...@idm.lab.eng.brq.redhat.com",
     "result": {
         "summary": "IPA server version 4.0.0GIT8543d4c. API version 2.102"
     },
     "version": "4.0.0GIT8543d4c"
}
-----------------------------------------------------
IPA server version 4.0.0GIT8543d4c. API version 2.102
-----------------------------------------------------

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.



_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


Works for me, thanks, ACK.

--
David Kupka

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to