Skip to content
Commit 3bad17c8 authored by Ross Burton's avatar Ross Burton Committed by Steve Sakoman
Browse files

oe/utils: log exceptions in ThreadedWorker functions



If the function a ThreadedWorker is executing raises an exception, don't
use print() as that mostly disappears.  Instead, output it to the logger.

This is done using bb.mainlogger.debug directly instead of bb.debug() as
this allows us to pass the exception instance directly, which is then
incorporated into the log stream.

Signed-off-by: default avatarRoss Burton <ross.burton@arm.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2f1ea25c)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent d91fe6ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment