You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by Ian Bicking <ia...@gmail.com> on 2010/01/05 17:55:41 UTC

Re: [libcloud] [jira] Created: (LIBCLOUD-4) improved debugging support

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 ...

Re: [libcloud] [jira] Created: (LIBCLOUD-4) improved debugging support

Posted by Paul Querna <pa...@querna.org>.
On Tue, Jan 5, 2010 at 8:55 AM, Ian Bicking <ia...@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.