Skip to content
Commit 34e72dd7 authored by Ross Burton's avatar Ross Burton Committed by Anuj Mittal
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 avatarAnuj Mittal <anuj.mittal@intel.com>
parent 0392005d
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