Return-Path: X-Original-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3D418246 for ; Fri, 9 Sep 2011 13:17:12 +0000 (UTC) Received: (qmail 38272 invoked by uid 500); 9 Sep 2011 13:17:12 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 38257 invoked by uid 500); 9 Sep 2011 13:17:12 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 38249 invoked by uid 99); 9 Sep 2011 13:17:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 13:17:11 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 13:17:06 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p89DGjMx006260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Sep 2011 09:16:45 -0400 Received: from dhcp-29-121.brq.redhat.com (dhcp-29-121.brq.redhat.com [10.34.29.121]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p89DGhjX031810 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 9 Sep 2011 09:16:44 -0400 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Deltacloud API verbose mode From: Michal Fojtik Date: Fri, 9 Sep 2011 15:17:37 +0200 Cc: deltacloud-dev@incubator.apache.org Content-Transfer-Encoding: quoted-printable Message-Id: <4930F962-4C7F-4F2F-BC08-785ABE30F038@redhat.com> To: aeolus-devel@lists.fedorahosted.org X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Hi, Just FYI, Deltacloud API from version 1315573802git (current nightly = build) supports 'verbose' mode, 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=3Dnil) cloud =3D new_client(credentials) info cloud =85 warn "Oops, something is wrong..." end In log you should then see the original file from where this message = comes, line in this source file 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=3D1 2. ./bin/deltacloudd -V -i mock (-V =3D=3D verbose mode) -- Michal ------------------------------------------------------ Michal Fojtik, mfojtik@redhat.com Deltacloud API: http://deltacloud.org