diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-09-28 21:45:14 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-29 14:11:36 +0100 |
commit | c71bbad38ac65c2e439606a86b05f7112e6fa57e (patch) | |
tree | b4fef25b31bb602679eedcf11df4c98746e8ec3e /bitbake/lib/toaster/toastergui/widgets.py | |
parent | 934f8d7b23bfcaf7d06a5fe475f7988ff9240f9d (diff) | |
download | poky-c71bbad38ac65c2e439606a86b05f7112e6fa57e.tar.gz |
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 <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 'bitbake/lib/toaster/toastergui/widgets.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/widgets.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
38 | import operator | 38 | import operator |
39 | import re | 39 | import re |
40 | 40 | ||
41 | import logging | ||
42 | logger = logging.getLogger("toaster") | ||
43 | |||
41 | from toastergui.views import objtojson | 44 | from toastergui.views import objtojson |
42 | 45 | ||
43 | class ToasterTable(TemplateView): | 46 | class ToasterTable(TemplateView): |
@@ -264,6 +267,7 @@ class ToasterTable(TemplateView): | |||
264 | data = cache.get(cache_name) | 267 | data = cache.get(cache_name) |
265 | 268 | ||
266 | if data: | 269 | if data: |
270 | logger.debug("Got cache data for table '%s'" % self.title) | ||
267 | return data | 271 | return data |
268 | 272 | ||
269 | self.setup_columns(**kwargs) | 273 | self.setup_columns(**kwargs) |