On 2021-06-04, Benjamin Drung wrote:
> Am Freitag, den 04.06.2021, 10:55 -0700 schrieb Vagrant Cascadian:
>> On 2021-06-04, Benjamin Drung wrote:
>> > On Thu, 03 Jun 2021 16:01:46 -0700 Vagrant Cascadian <vagr...@debian.org> 
>> > wrote:
>> > > While I can see value in increased verbosity in some situations, it
>> > > would be nice to be able to get mmdebstrap's simple and minimal progress
>> > > bar output while still using bdebstrap for the configuration and other
>> > > features it provides.
>> > > 
>> > > Simply removing the "-v" argument in /usr/bin/bdebstrap appears to work
>> > > fine, though obviously people who want the increased verbosity will need
>> > > to add it back somehow.
>> > 
>> > I thought about it. bdebstrap produces some log messages as well. Do
>> > you want to tweak the verbosity of mmdebstrap and bdebstrap separately?
>> > 
>> > One simple change would be to couple the verbosity of bdebstrap and
>> > mmdebstrap:
>> > 
>> > * normal mode: uses info level and pass -v to mmdebstrap
>> > * --debug: uses debug level and pass -v to mmdebstrap
>> > * --quiet: use warning level and don't pass -v to mmdebstrap
>> > 
>> > I have implemented that in the quiet branch for testing it:
>> > https://github.com/bdrung/bdebstrap/tree/quiet
>> > 
>> > What do you think?
>> 
>> Works for me!
>> 
>> The only thing is I'm not sure if someone *might* want a --silent
>> option, but that's not currently me. :)
>
> --silent as alias for --quiet?

Oh dear, I didn't realize that --silent and --quiet in mmdebstrap are
the same thing...


> I just had a look at the man page of mmdebstrap. It has a
> --quiet/--silent option as well. Is it better to align the log level of
> bdebstrap with mmdebstrap? So add the same option to bdebstrap than
> mmdebstrap and just pass it down?

There is a lot to say for mirroring what mmdebstrap does by just passing
--verbose, --silent, --quiet, --debug down, though that does mean
bdebstrap would have to change default behavior.

Mostly, I prefer the default verbosity of mmdebstrap and was mildly
surprised that bdebstrap hard-coded a higher level of verbosity for
mmdebstrap.

As long as there's some reasonable way to get mmdebstrap's default
verbosity level when using bdebstrap, I'm not particularly opinionated
in how it is implemented. :)


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to