| Message ID | 20250612093206.168888-1-hongxu.jia@windriver.com |
|---|---|
| State | Accepted, archived |
| Commit | 873c524e1a33846df8f34b7c87b298349277b3d5 |
| Headers | show |
| Series | [v3] bitbake-getvar: skip info output of bitbake for quiet | expand |
On Thu, 12 Jun 2025 at 11:32, hongxu via lists.openembedded.org <hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote: > + if quiet: > + logger = logging.getLogger("BitBake") > + logger.setLevel(logging.WARNING) > + Thanks, this should be the correct fix :) Alex
Am Donnerstag, dem 12.06.2025 um 12:15 +0200 schrieb Alexander Kanavin via lists.openembedded.org: > On Thu, 12 Jun 2025 at 11:32, hongxu via lists.openembedded.org > <hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote: > > + if quiet: > > + logger = logging.getLogger("BitBake") > > + logger.setLevel(logging.WARNING) > > + > > Thanks, this should be the correct fix :) So my findings in the bug report https://bugzilla.yoctoproject.org/show_bug.cgi?id=15881 are obsolete by this fix/workaround and we should close it? Regards, Enrico > Alex > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#17699): https://lists.openembedded.org/g/bitbake-devel/message/17699 > Mute This Topic: https://lists.openembedded.org/mt/113603580/3616721 > Group Owner: bitbake-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [ejo@pengutronix.de] > -=-=-=-=-=-=-=-=-=-=-=- >
On Wed, 9 Jul 2025 at 14:11, Enrico Jörns <ejo@pengutronix.de> wrote: > So my findings in the bug report https://bugzilla.yoctoproject.org/show_bug.cgi?id=15881 are > obsolete by this fix/workaround and we should close it? Probably. Can you verify that? Alex
diff --git a/bin/bitbake-getvar b/bin/bitbake-getvar index 1719824d9..378fb1357 100755 --- a/bin/bitbake-getvar +++ b/bin/bitbake-getvar @@ -10,6 +10,7 @@ import io import os import sys import warnings +import logging warnings.simplefilter("default") bindir = os.path.dirname(__file__) @@ -38,6 +39,10 @@ if __name__ == "__main__": sys.exit("--flag only makes sense with --value") quiet = args.quiet or args.value + if quiet: + logger = logging.getLogger("BitBake") + logger.setLevel(logging.WARNING) + with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil: if args.recipe: tinfoil.prepare(quiet=3 if quiet else 2)
Calling oe-debuginfod in a build failed: ... $ oe-debuginfod |Getting sysroot... |Error: NOTE: Reconnecting to bitbake server... |NOTE: Retrying server connection (#1)... (18:55:53.009687) |path-to-build/tmp/work/x86_64-linux/elfutils-native/0.192/recipe-sysroot-native doesn't exist. |Have you run 'bitbake elfutils-native -caddto_recipe_sysroot'? ... The script oe-debuginfod calls bitbake-getvar to get sysroot, the output of bitbake-getvar was mixed with info output of bitbake ... NOTE: Reconnecting to bitbake server... NOTE: Retrying server connection (#1)... (18:55:53.009687) ... Set logger level to logging.WARNING to skip info output for quiet Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> --- bin/bitbake-getvar | 5 +++++ 1 file changed, 5 insertions(+)