Re: [Freeipa-devel] [PATCH][RFC] 13 - Log pretty-printed request and response

2014-09-24 Thread Petr Viktorin

On 04/16/2014 05:42 PM, Rob Crittenden wrote:

Misnyovszki Adam wrote:

Hi,
this patch enables logging json dumps of request and response, using
the --log-payload switch in ipa cli. RFC tag is to ensure that I
handled the --log-payload switch correctly in ipa cli. Be careful, it
only logs, so --log-payload without -v switch doesn't make the dump
visible in command line, -v does!

https://fedorahosted.org/freeipa/ticket/4233


Not a NACK but using -vvv makes this a much simpler operation as you can
then just compare verbose = 3. This seems like a lot of work just to
pretty-print some output.

rob


This patch has been superseded by my 0648 (commit b7a6d79).


--
PetrĀ³

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


Re: [Freeipa-devel] [PATCH][RFC] 13 - Log pretty-printed request and response

2014-04-23 Thread Misnyovszki Adam
On Wed, 16 Apr 2014 11:42:00 -0400
Rob Crittenden rcrit...@redhat.com wrote:

 Misnyovszki Adam wrote:
  Hi,
  this patch enables logging json dumps of request and response, using
  the --log-payload switch in ipa cli. RFC tag is to ensure that I
  handled the --log-payload switch correctly in ipa cli. Be careful,
  it only logs, so --log-payload without -v switch doesn't make the
  dump visible in command line, -v does!
 
  https://fedorahosted.org/freeipa/ticket/4233
 
 Not a NACK but using -vvv makes this a much simpler operation as you
 can then just compare verbose = 3. This seems like a lot of work
 just to pretty-print some output.
 
 rob
 

I've found out, that in RPCClient.create_connection, according to
ipalib/backend.py:164, the variable verbose is not an int, rather a
bool ( verbose=(self.env.verbose = 2) ), so I decided not to break the
workflow of this variable, but rather create a new one(log-payload). I
was thinking, making verbose to an int would cause more work than to do
it this way.
Adam

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


Re: [Freeipa-devel] [PATCH][RFC] 13 - Log pretty-printed request and response

2014-04-16 Thread Rob Crittenden

Misnyovszki Adam wrote:

Hi,
this patch enables logging json dumps of request and response, using
the --log-payload switch in ipa cli. RFC tag is to ensure that I
handled the --log-payload switch correctly in ipa cli. Be careful, it
only logs, so --log-payload without -v switch doesn't make the dump
visible in command line, -v does!

https://fedorahosted.org/freeipa/ticket/4233


Not a NACK but using -vvv makes this a much simpler operation as you can 
then just compare verbose = 3. This seems like a lot of work just to 
pretty-print some output.


rob

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