incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <p...@querna.org>
Subject Re: [libcloud] [jira] Created: (LIBCLOUD-4) improved debugging support
Date Tue, 05 Jan 2010 23:50:52 GMT
On Tue, Jan 5, 2010 at 8:55 AM, Ian Bicking <ianbicking@gmail.com> wrote:
> There's not really a command line that this could be added to, but if the
> library looked for an environmental variable then you could enable debugging
> in any context.  E.g.:
>
>    LIBCLOUD_DEBUG=t some-random-libcloud-using-tool ...
>

done in r896276:
http://svn.apache.org/viewvc?view=revision&revision=896276

Setting the environment LIBCLOUD_DEBUG=/path/to/file will log every
HTTPS request as a curl command, and also log the entire response HTTP
headers/body.

libcloud.enable_debug(open('my.log', 'a')) also is available if you
want to do it programmatically.

Mime
View raw message