summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-08-18 17:28:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 18:05:53 +0100
commit12c9cca5b1de74d5662175f3bf127ab33a2a7441 (patch)
treefebde7e67e30697dac92844c5680e69dc24d3f2e /bitbake/lib/toaster/toastergui
parentd18e6303a0bbfcac14766749c4fc8e41478f6db6 (diff)
downloadpoky-12c9cca5b1de74d5662175f3bf127ab33a2a7441.tar.gz
bitbake: toaster: use loggers instead of prints
Switching debugging from using print statement to using loggers, as it uses the logging infrastructure to process the messages. The messages are logged with the "toaster" logger which is defined in the toastermain/settings.py. (Bitbake rev: adf3bdcbe8b0b0bbe9de2800f2d20a53e8d88543) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> 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')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index d6bd7c94ba..0f05955af4 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -42,6 +42,10 @@ import json
42from os.path import dirname 42from os.path import dirname
43import itertools 43import itertools
44 44
45import logging
46
47logger = logging.getLogger("toaster")
48
45# all new sessions should come through the landing page; 49# all new sessions should come through the landing page;
46# determine in which mode we are running in, and redirect appropriately 50# determine in which mode we are running in, and redirect appropriately
47def landing(request): 51def landing(request):