diff options
author | Michael Wood <michael.g.wood@intel.com> | 2014-10-28 17:47:12 +0000 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2015-01-09 08:52:21 -0800 |
commit | a0f1fbb9bb8a28e8324594a7e5bc30334b1c7baa (patch) | |
tree | f0608348c2c8075157d96e546cf11c2aa5938176 /bitbake | |
parent | f950e80871400208094c37549f05fd861131eaa3 (diff) | |
download | tizen-distro-a0f1fbb9bb8a28e8324594a7e5bc30334b1c7baa.tar.gz tizen-distro-a0f1fbb9bb8a28e8324594a7e5bc30334b1c7baa.tar.bz2 tizen-distro-a0f1fbb9bb8a28e8324594a7e5bc30334b1c7baa.zip |
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>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 8 |
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): log_information = {} log_information['build'] = self.internal_state['build'] - if event.levelno >= format.ERROR: - log_information['level'] = event.levelno + if event.levelno == format.ERROR: + log_information['level'] = LogMessage.ERROR elif event.levelno == format.WARNING: log_information['level'] = LogMessage.WARNING - elif event.levelno == format.INFO: - log_information['level'] = LogMessage.INFO else: - log_information['level'] = event.levelno + log_information['level'] = LogMessage.INFO log_information['message'] = event.msg log_information['pathname'] = event.pathname |