incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <>
Subject Deltacloud API verbose mode
Date Fri, 09 Sep 2011 13:17:37 GMT

Just FYI, Deltacloud API from version 1315573802git (current nightly build) supports 'verbose'
which you can use to report errors or see what parameters are picked up by API on request
and other
useful informations.
This could be extra useful for debugging and also reporting errors to us.

Other handy tool that comes along with this patch is that you can place custom debugging messages
everywhere in the code like:

    def instances(credentials, opts=nil)
      cloud = new_client(credentials)
      info cloud
      warn "Oops, something is wrong..."

In log you should then see the original file from where this message comes, line in this source
and original caller method that throws this message.

I hope this will help us be more flexible in debugging Deltacloud API code.
In order to enable it you can do following:

1. export API_VERBOSE=1
2. ./bin/deltacloudd -V -i mock (-V == verbose mode)

 -- Michal

Michal Fojtik,
Deltacloud API:

View raw message