git.schokokeks.org
Repositories
Help
Report an Issue
derivepassphrase.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
ad0fe1e
Branches
Tags
documentation-tree
master
0.1.0
0.1.1
0.1.2
0.1.3
0.2.0
0.3.0
0.3.1
0.3.2
0.3.3
0.4.0
derivepassphrase.git
docs
changelog.d
20241208_175929_the-13th-letter_logging.md
Document the switch to the logging and warning systems in the changelog
Marco Ricci
commited
ad0fe1e
at 2024-12-08 19:02:03
20241208_175929_the-13th-letter_logging.md
Blame
History
Raw
### Added - Both `derivepassphrase vault` and `derivepassphrase export vault` now support changing the amount of diagnostic output they emit via new command-line options `--debug`, `-v`/`--verbose` and `-q`/`--quiet`. Internally, this uses Python's standard [logging][] and [warnings][] systems. ### Changed - Calling [`derivepassphrase.cli.derivepassphrase_export`][], [`derivepassphrase.cli.derivepassphrase_export_vault`][] or [`derivepassphrase.cli.derivepassphrase_vault`][], or calling [`derivepassphrase.cli.derivepassphrase`][] via its [`.main`][click.BaseCommand.main] method, causes those functions to use the standard Python [logging][] and [warnings][] facilities to issue diagnostic messages, without output to standard error. (This includes using [`click.testing.CliRunner`][], which uses `.main` calls under the hood.) Calling [`derivepassphrase.cli.derivepassphrase`][] directly as a function diverts diagnostic messages to standard error.