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 13:44:47 +0100 |
commit | 68b9c2d95ab17ee2d16325862342126eb5c3c1a7 (patch) | |
tree | 923b5a873a5e8f87f2bfb17de60b801a51d56382 | |
parent | f81b48c30a548bee946d34c56aa1872785bcec30 (diff) | |
download | bitbake-68b9c2d95ab17ee2d16325862342126eb5c3c1a7.zip |
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>
-rw-r--r-- | lib/toaster/toastergui/widgets.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py index eb496921..7f963706 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) |