On Wed, Oct 20, 2010 at 04:41:21AM +0200, Martin Baehr wrote:
> is there a way to watch what conary sends over the wire?

Yes!  The CONARY_CLIENT_LOG environment variable specifies a
file to which to write a binary log of XML-RPC traffic, and it
works with both conary and cvc.

CONARY_CLIENT_LOG=/tmp/conary.log conary rq foo=bar
/usr/share/conary/logcat /tmp/conary.log | less

logcat takes some options:

$ /usr/share/conary/logcat --help
Usage: logcat [options]

Options:
  --version         show program's version number and exit
  -h, --help        show this help message and exit
  -e, --exceptions  display only entries which generated exceptions
  -f, --follow      follow updates to the log
  -n                skip reverse dns
  -p, --params      display method parameters
  -t, --times       display method run times

So you can even run logcat -f in another terminal while running the
conary command.

Please note: this is a raw log of XML-RPC -- it will have all data
in it, which in all cases where authentication is done will include
your password.  Take appropriate care.
_______________________________________________
Foresight-devel mailing list
Foresight-devel@lists.rpath.org
http://lists.rpath.org/mailman/listinfo/foresight-devel

Reply via email to