summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
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-10-30 13:01:22 +0000
commit87dec81de63a0ff86758641357f358ae9760c999 (patch)
tree5ad7dfb145a86e6176a2bbcac6e3bfb0dbd2aac0 /bitbake/lib/bb
parentc97194b0b1aceb09752fe8edd84085757731c2a6 (diff)
downloadpoky-87dec81de63a0ff86758641357f358ae9760c999.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: 3aa13bc1d8218c97c76581a895fa5f03ff807fbe) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-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