From c71bbad38ac65c2e439606a86b05f7112e6fa57e Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Mon, 28 Sep 2015 21:45:14 -0700 Subject: bitbake: toaster: widgets ToasterTable add logger to notify when cache hit Useful for debugging to remind you if you're hitting a cache or not (Bitbake rev: 68b9c2d95ab17ee2d16325862342126eb5c3c1a7) Signed-off-by: Michael Wood Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/widgets.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/toaster/toastergui/widgets.py') diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py index eb4969214f..7f9637060d 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) -- cgit v1.2.3-54-g00ecf