Comment 1 for bug 520219

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 520219] [NEW] want a way to get a trace of api calls

On Thu, 11 Feb 2010 02:12:28 -0000, Martin Pool <email address hidden> wrote:
> Public bug reported:
>
> api calls to Launchpad can be a bit slow. It would be nice if there was
> a way to see a trace of what's happening, so that we can either give the
> user some idea of progress, or so that the application author can get an
> idea of inefficient things they may be doing. Because it runs only over
> https you can't watch the requests at the network level.
>
> Something like LAUNCHPADLIB_TRACE=1 would be nice, and would let it be
> turned on without app-specific patches.

Do you know about "import httplib2; httplib2.debuglevel = 1"?

It's not suitable for displaying to users, and it doesn't satisy your
last constraint, but I use it for looking at the requests when
developing.

It may be useful to you until this bug is fixed.

Thanks,

James