mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 09:32:14 +02:00
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:
committed by
Richard Purdie
parent
934f8d7b23
commit
c71bbad38a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user