public inbox for bitbake-devel@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <alex.kanavin@gmail.com>
Cc: <bitbake-devel@lists.openembedded.org>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [bitbake-devel] [PATCH 3/4] bitbake-setup: print plain messages in quiet mode
Date: Wed, 18 Feb 2026 09:47:39 +0100	[thread overview]
Message-ID: <DGHYH2CB1NGG.265ZFRUDDWCJG@bootlin.com> (raw)
In-Reply-To: <CANNYZj-Ta+QKHXpzCyPS0eLOX6irVadGGEO1T7RJSTeAKGzpvA@mail.gmail.com>

On Tue Feb 17, 2026 at 11:18 AM CET, Alexander Kanavin via lists.openembedded.org wrote:
> On Tue, 17 Feb 2026 at 10:36, Antonin Godard <antonin.godard@bootlin.com> wrote:
>
>> Actually, when I was testing things I was in interactive mode. Previously,
>> passing --quiet in interactive mode would just leave you with nothing printed
>> on the console (only warning and errors), which is strange for an interactive
>> progem. However I forgot than in non-interactive mode you may want that to
>> happen (nothing printed).
>>
>> So maybe, we should look at the --non-interactive option value and print nothing
>> (i.e. leave the current state, only warnings and errors are printed) when True,
>> but raise the loglevel to have at least PLAIN messages when True? Or give the
>> user a warning that running the init command shouldn't be run with --quiet?
>
> I'd suggest that we start with setting clear criteria for using
> various printing/logging levels:
>
> - any interactive selections and prompts should be using
> logger.verbnote (which is higher level than plain or info, but isn't a
> warning).

Agreed. I think verbnote messages appear with a "NOTE: " prefix though, which I
don't think is necessary for bitbake-setup.

> - regular messages right now are using a mix of plain and info -
> what's the difference and criteria for picking one or the other?
> Should they be unified, or do we still need to use both?

It was a bit arbitrary, but info messages seemed less "important" to me than
plain messages (their "NOTE:" prefix is what this feels like to me at least).

> Then, modes could be defined like this: quiet mode prints only
> verbnote and higher. Regular mode prints info and higher. Debug mode
> prints debug and higher.
>
> One possibility with modes is to actually remove --quiet altogether -
> is there really a use case for it? Bitbake-setup doesn't flood the
> console, and what it prints can be useful in finding out what went
> wrong, in addition to the actual error.

I think it's ok to keep it, it shouldn't be hard to support and there might be a
use-case for it for some people.

I will take this out of this series, as this requires more thought-processing. I
will try to follow-up with some proposal when I have some time, including
verbnote, etc.

Thanks!
Antonin


  reply	other threads:[~2026-02-18  8:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-13 13:50 [PATCH 0/4] bitbake-setup: Improve readability Antonin Godard
2026-02-13 13:50 ` [PATCH 1/4] bitbake-setup: define a global for the color choice Antonin Godard
2026-02-16 19:51   ` [bitbake-devel] " Alexander Kanavin
2026-02-13 13:50 ` [PATCH 2/4] bitbake-setup: improve readability of choices Antonin Godard
2026-02-13 13:50 ` [PATCH 3/4] bitbake-setup: print plain messages in quiet mode Antonin Godard
2026-02-16 19:56   ` [bitbake-devel] " Alexander Kanavin
     [not found]   ` <1894D252853C99A9.200918@lists.openembedded.org>
2026-02-16 20:03     ` Alexander Kanavin
2026-02-17  9:36       ` Antonin Godard
2026-02-17 10:18         ` Alexander Kanavin
2026-02-18  8:47           ` Antonin Godard [this message]
2026-02-13 13:50 ` [PATCH 4/4] bitbake-setup: print colored diffs Antonin Godard
2026-02-16 19:54   ` [bitbake-devel] " Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DGHYH2CB1NGG.265ZFRUDDWCJG@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=alex.kanavin@gmail.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox