diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-08-18 17:28:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-19 18:05:53 +0100 |
commit | 12c9cca5b1de74d5662175f3bf127ab33a2a7441 (patch) | |
tree | febde7e67e30697dac92844c5680e69dc24d3f2e /bitbake/lib/toaster/toastergui | |
parent | d18e6303a0bbfcac14766749c4fc8e41478f6db6 (diff) | |
download | poky-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-x | bitbake/lib/toaster/toastergui/views.py | 4 |
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 | |||
42 | from os.path import dirname | 42 | from os.path import dirname |
43 | import itertools | 43 | import itertools |
44 | 44 | ||
45 | import logging | ||
46 | |||
47 | logger = 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 |
47 | def landing(request): | 51 | def landing(request): |