want a way to get a trace of api calls
Bug #520219 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Triaged
|
Low
|
Unassigned |
Bug Description
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_
Probably the output should go through python's logging module so it can be redirected.
Changed in launchpadlib: | |
status: | New → Triaged |
importance: | Undecided → Low |
description: | updated |
To post a comment you must log in.
On Thu, 11 Feb 2010 02:12:28 -0000, Martin Pool <email address hidden> wrote: TRACE=1 would be nice, and would let it be
> 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_
> 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