[pacman-dev] provide version numbers + pacman.conf == command line
Xavier
shiningxc at gmail.com
Fri Apr 20 12:38:59 EDT 2007
2007/4/20, VMiklos <vmiklos at frugalware.org>:
> --verbose controls the frontend while --debug controls the library. the
> only problem is that the logmask is always or'ed with PM_LOG_WARNING
> which means you can't disable warnings.
>
> Xavier, what about disabling that or'ing when --debug is used? then
> using --debug 0, you could avoid those messages
>
Hmm, I don't know, I think that ideally, all logs could be enabled or
disabled at running time.
There are 5 kind of logs, so that would make 6 level :
0 : nothing, 1 : +error, 2 : +warning, 3 : +debug, 4 : +download, 5 : +function
And the default level would be either 1 or 2. While I think errors,
which really indicate something went wrong, should be displayed by
default, I'm not sure about warnings, which are generally harmless.
Is it possible to handle this only with this --debug option, by
keeping it clear and easy to use?
Using --debug 2 for getting warnings and --debug 3 for debug level is
maybe not very clear, but well, I'm not sure..
More information about the pacman-dev
mailing list