summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2014-10-28 17:47:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-31 10:10:21 +0000
commit942e35d65167a6073afb68a6d2598e5241680a5e (patch)
tree1a578e8761973eda2ce8d174fac0fd40816226a4 /bitbake
parentc35cecebc6a407bac14a9f1b8dff5dbc85130f77 (diff)
downloadpoky-942e35d65167a6073afb68a6d2598e5241680a5e.tar.gz
bitbake: buildinfohelper: Make sure we use the orm defined value for loglevel
We need to consistently use LogMessage.INFO/WARNING/ERROR to make sure toaster knows how to categories these rather than passing in the "raw" loglevel value which in best case comes from python logging but worst case any value. [YOCTO 6885] (Bitbake rev: 926235aad806232bc73e33d6dd8955dd26562e6b) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 7017305ae7..a0a2d80ffa 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -979,14 +979,12 @@ class BuildInfoHelper(object):
979 979
980 log_information = {} 980 log_information = {}
981 log_information['build'] = self.internal_state['build'] 981 log_information['build'] = self.internal_state['build']
982 if event.levelno >= format.ERROR: 982 if event.levelno == format.ERROR:
983 log_information['level'] = event.levelno 983 log_information['level'] = LogMessage.ERROR
984 elif event.levelno == format.WARNING: 984 elif event.levelno == format.WARNING:
985 log_information['level'] = LogMessage.WARNING 985 log_information['level'] = LogMessage.WARNING
986 elif event.levelno == format.INFO:
987 log_information['level'] = LogMessage.INFO
988 else: 986 else:
989 log_information['level'] = event.levelno 987 log_information['level'] = LogMessage.INFO
990 988
991 log_information['message'] = event.msg 989 log_information['message'] = event.msg
992 log_information['pathname'] = event.pathname 990 log_information['pathname'] = event.pathname