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>
This commit is contained in:
Michael Wood
2015-09-28 21:45:14 -07:00
committed by Richard Purdie
parent 934f8d7b23
commit c71bbad38a

View File

@@ -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)