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 C76D981AC for ; Fri, 9 Sep 2011 13:45:25 +0000 (UTC) Received: (qmail 87070 invoked by uid 500); 9 Sep 2011 13:45:25 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 87020 invoked by uid 500); 9 Sep 2011 13:45:25 -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 87012 invoked by uid 99); 9 Sep 2011 13:45:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 13:45:24 +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 (nike.apache.org: domain of whayutin@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:45:19 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p89DiuD7015444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Sep 2011 09:44:56 -0400 Received: from [10.11.10.69] (vpn-10-69.rdu.redhat.com [10.11.10.69]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p89Ditf5005886; Fri, 9 Sep 2011 09:44:55 -0400 Subject: Re: Deltacloud API verbose mode From: wes hayutin To: Michal Fojtik Cc: aeolus-devel@lists.fedorahosted.org, deltacloud-dev@incubator.apache.org Date: Fri, 09 Sep 2011 09:44:55 -0400 In-Reply-To: <4930F962-4C7F-4F2F-BC08-785ABE30F038@redhat.com> References: <4930F962-4C7F-4F2F-BC08-785ABE30F038@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Message-ID: <1315575896.25022.0.camel@minidoe> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Virus-Checked: Checked by ClamAV on apache.org woot!!! On Fri, 2011-09-09 at 15:17 +0200, Michal Fojtik wrote: > 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=nil) > cloud = new_client(credentials) > info cloud > … > 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=1 > 2. ./bin/deltacloudd -V -i mock (-V == verbose mode) > > -- Michal > > ------------------------------------------------------ > Michal Fojtik, mfojtik@redhat.com > Deltacloud API: http://deltacloud.org > > _______________________________________________ > aeolus-devel mailing list > aeolus-devel@lists.fedorahosted.org > https://fedorahosted.org/mailman/listinfo/aeolus-devel