mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
bitbake: build: Avoid duplicating logs in verbose mode
With "bitbake -v", for task failures you'd see the log output twice. Avoid this by using the existing "did we print info" switch. (Bitbake rev: e2c1afda4cb8023ed4ffeb5dc5bee4f0055659a8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -699,6 +699,10 @@ def _exec_task(fn, task, d, quieterr):
|
|||||||
event.fire(TaskFailedSilent(task, fn, logfn, localdata), localdata)
|
event.fire(TaskFailedSilent(task, fn, logfn, localdata), localdata)
|
||||||
else:
|
else:
|
||||||
errprinted = errchk.triggered
|
errprinted = errchk.triggered
|
||||||
|
# If the output is already on stdout, we've printed the information in the
|
||||||
|
# logs once already so don't duplicate
|
||||||
|
if verboseStdoutLogging:
|
||||||
|
errprinted = True
|
||||||
logger.error(str(exc))
|
logger.error(str(exc))
|
||||||
event.fire(TaskFailed(task, fn, logfn, localdata, errprinted), localdata)
|
event.fire(TaskFailed(task, fn, logfn, localdata, errprinted), localdata)
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user