Add --verbose-level flag and fix logging level calculations (#8900)

Also, update `dev-cli.ini` example to use new flag.

Although https://github.com/bw2/ConfigArgParse/pull/216 allowed setting a `count` action value in a config file, our default detection system won't let us use that functionality. While we should eventually fix that, for now, let developers have a cli.ini with a higher logging level by adding this flag.

Note that this flag is intended to work the same way adding `-vvv`s does; that is, as a modifier to the pre-set level, rather than setting the absolute level. The number it is set to is equivalent to the number of `v`s that would otherwise have been passed, with "2" as the current maximum effective number of levels (warning --> info --> debug).

* Add --verbose-level flag for devs to set in cli.ini

* Update dev-cli.ini to use new flag
This commit is contained in:
ohemorange
2021-06-10 16:45:07 -07:00
committed by GitHub
parent b48e336554
commit c8255dded5
5 changed files with 17 additions and 6 deletions
+1 -3
View File
@@ -13,8 +13,6 @@ domains = example.com
text = True
agree-tos = True
debug = True
# Unfortunately, it's not possible to specify "verbose" multiple times
# (correspondingly to -vvvvvv)
verbose = True
verbose-level = 2 # -vv (debug)
authenticator = standalone