Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0821BE00FBF; Fri, 25 Sep 2015 11:07:48 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.179 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 94C67E00FBA for ; Fri, 25 Sep 2015 11:07:46 -0700 (PDT) Received: by wicgb1 with SMTP id gb1so31108770wic.1 for ; Fri, 25 Sep 2015 11:07:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rVbOxnPMcSt5AB7R3PLn9xsqVsKFdIOQDg9ZlBebfwI=; b=ihEGFa6CsPTR0ZEcpPDxLt4YDWm0WycAwTZt4YB7PagTBPvREyzAU9Ei8rVOmO5H/l Sjsgj34HyL3JUSLIWP0k2d7EeNR2S9MRxAwoFJCplCekcTyUFjRKY1nGQy4gj5JXqfWj oTNgln83E3171HxOc230eibjPH5ObPsE3lbgvEhjEMzHUoPm2jcWQ06G4PAaUaohoADg c8rJRKNp1TU4rCUvfIT91j87rL5KFqwn29HFM2ieoXMg2WGSgWEiUSbD3UrVvf/XpzKr lqOF5uwSyhHtKQfwOCUNqPIkabW/uPgIBre1QgAMrw73s3+ys4bFBnp9+2OaJ9FTS1L/ EaCw== X-Gm-Message-State: ALoCoQl0m+H/5j9/vq6QTM7FfU61/7ngj9HZmoNts985MBoySVLQuO/81WqZZqeMXhyKdy/AWjqh X-Received: by 10.180.104.65 with SMTP id gc1mr5101332wib.67.1443204465306; Fri, 25 Sep 2015 11:07:45 -0700 (PDT) Received: from draco.isw.intel.com ([83.217.123.106]) by smtp.gmail.com with ESMTPSA id uq5sm4511789wjc.3.2015.09.25.11.07.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Sep 2015 11:07:44 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 25 Sep 2015 19:07:15 +0100 Message-Id: <1443204452-32244-5-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> References: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 04/21] toaster: widgets ToasterTable add logger to notify when cache hit X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2015 18:07:48 -0000 Useful for debugging to remind you if you're hitting a cache or not Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/widgets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py index eb49692..7f96370 100644 --- a/bitbake/lib/toaster/toastergui/widgets.py +++ b/bitbake/lib/toaster/toastergui/widgets.py @@ -38,6 +38,9 @@ import collections import operator import re +import logging +logger = logging.getLogger("toaster") + from toastergui.views import objtojson class ToasterTable(TemplateView): @@ -264,6 +267,7 @@ class ToasterTable(TemplateView): data = cache.get(cache_name) if data: + logger.debug("Got cache data for table '%s'" % self.title) return data self.setup_columns(**kwargs) -- 2.1.4