[bitbake-devel] [PATCH 04/22] toaster: widgets ToasterTable add logger to notify when cache hit
brian avery
avery.brian at gmail.com
Tue Sep 29 04:45:14 UTC 2015
From: Michael Wood <michael.g.wood at intel.com>
Useful for debugging to remind you if you're hitting a cache or not
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: brian avery <avery.brian at gmail.com>
---
lib/toaster/toastergui/widgets.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py
index eb49692..7f96370 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)
--
1.9.1
More information about the bitbake-devel
mailing list