diff mbox series

[3/4] bitbake-setup: print plain messages in quiet mode

Message ID 20260213-improve-bbsetup-readability-v1-3-41cec3b06992@bootlin.com
State New
Headers show
Series bitbake-setup: Improve readability | expand

Commit Message

Antonin Godard Feb. 13, 2026, 1:50 p.m. UTC
At the moment, plain messages are not printed when --quiet is passed on
the command line. This makes no sense since bitbake-setup prints most of
the essential information with the logging.PLAIN level. Raise the quiet
logger level to logging.INFO + 1, which corresponds to the PLAIN level
in the BBLogFormatter class.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 bin/bitbake-setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 6529e9f30b5..19db14edb3e 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -1122,7 +1122,7 @@  def main():
     if args.debug:
         logger.setLevel(logging.DEBUG)
     elif args.quiet:
-        logger.setLevel(logging.ERROR)
+        logger.setLevel(logging.INFO + 1) # BBLogFormatter.PLAIN level
 
     global BBSETUP_COLOR
     if args.color == 'always' or (args.color == 'auto' and sys.stdout.isatty() and os.environ.get('NO_COLOR', '') == ''):