From: Michael Wood Date: Tue, 29 Sep 2015 04:45:14 +0000 (-0700) Subject: toaster: widgets ToasterTable add logger to notify when cache hit X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68b9c2d95ab17ee2d16325862342126eb5c3c1a7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py index eb4969214fe..7f9637060d6 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)