From ed9fa17467ad8f41c654187eb840d4b4e15d262d Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Thu, 8 Jan 2015 13:15:10 +0000 Subject: bitbake: toaster: Improve client side error handling Make use of the toastermain.settings.DEBUG flag to toggle the client side error logging. Make the error logging consistent by using console.warn/error across the project, this adds traceability to the warnings. Also handles the case where console is not available by stubbing it in libtoaster. (Bitbake rev: c34ebc51a6cbf90c64ef1ac461e475c6341f0f2a) Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/base.html | 5 +++++ bitbake/lib/toaster/toastergui/templates/layers.html | 8 ++++---- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 8 ++++---- bitbake/lib/toaster/toastergui/templates/targets.html | 8 ++++---- 4 files changed, 17 insertions(+), 12 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index bc7a0ee436..e95b5e0cac 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -21,6 +21,11 @@ +{% if DEBUG %} + +{% endif %} {%if MANAGED %}