diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-01-08 13:15:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-08 22:34:36 +0000 |
commit | ed9fa17467ad8f41c654187eb840d4b4e15d262d (patch) | |
tree | 21166f53d96811cc2c31f83c69a026eb2f97d53b /bitbake/lib/toaster/toastergui/views.py | |
parent | 2e26745a134373dfde3aa2b16fef3df720436e77 (diff) | |
download | poky-ed9fa17467ad8f41c654187eb840d4b4e15d262d.tar.gz |
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 <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 679c1e9430..420b37cb73 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -1898,7 +1898,8 @@ if toastermain.settings.MANAGED: | |||
1898 | def managedcontextprocessor(request): | 1898 | def managedcontextprocessor(request): |
1899 | ret = { | 1899 | ret = { |
1900 | "projects": Project.objects.all(), | 1900 | "projects": Project.objects.all(), |
1901 | "MANAGED" : toastermain.settings.MANAGED | 1901 | "MANAGED" : toastermain.settings.MANAGED, |
1902 | "DEBUG" : toastermain.settings.DEBUG | ||
1902 | } | 1903 | } |
1903 | if 'project_id' in request.session: | 1904 | if 'project_id' in request.session: |
1904 | try: | 1905 | try: |
@@ -2923,7 +2924,8 @@ else: | |||
2923 | def managedcontextprocessor(request): | 2924 | def managedcontextprocessor(request): |
2924 | return { | 2925 | return { |
2925 | "projects": [], | 2926 | "projects": [], |
2926 | "MANAGED" : toastermain.settings.MANAGED | 2927 | "MANAGED" : toastermain.settings.MANAGED, |
2928 | "DEBUG" : toastermain.settings.DEBUG | ||
2927 | } | 2929 | } |
2928 | 2930 | ||
2929 | def newproject(request): | 2931 | def newproject(request): |