]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/image: suppress log_check mechanism for warnings/errors logged through BitBake paule/rootfs-log-check-oe
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 1 Dec 2015 03:13:54 +0000 (16:13 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 12 Dec 2016 21:54:58 +0000 (10:54 +1300)
commit70e5dd48c0b764bfe3c59833725dce6cbaac23c0
tree62f768234e47b1801ef41a9abc652a99b9ce1940
parent18d260f575f3463216016834f1cdff367d714180
classes/image: suppress log_check mechanism for warnings/errors logged through BitBake

If you printed a warning through bb.warn() / bbwarn or an error through
bb.error() / bberror, this was also being picked up by our log_check
mechanism that was designed to pick up warnings and errors printed by
other programs used during do_rootfs. This meant you saw not only the
warning or error itself, you saw it a second time through log_check,
which is a bit ugly. Use the just-added BB_TASK_LOGGER to access the
logger and add a handler that we can use to find out if any warning or
error we find in the logs is one we should ignore as it has already been
printed.

Fixes [YOCTO #8223].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/image.bbclass
meta/lib/oe/rootfs.py