aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/widgets.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-09-28 21:45:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 13:44:47 +0100
commit68b9c2d95ab17ee2d16325862342126eb5c3c1a7 (patch)
tree923b5a873a5e8f87f2bfb17de60b801a51d56382 /lib/toaster/toastergui/widgets.py
parentf81b48c30a548bee946d34c56aa1872785bcec30 (diff)
downloadbitbake-contrib-68b9c2d95ab17ee2d16325862342126eb5c3c1a7.tar.gz
toaster: widgets ToasterTable add logger to notify when cache hit
Useful for debugging to remind you if you're hitting a cache or not Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/widgets.py')
-rw-r--r--lib/toaster/toastergui/widgets.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py
index eb4969214..7f9637060 100644
--- a/lib/toaster/toastergui/widgets.py
+++ b/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)