bootstrap action ignores "--verbosity" when no configuration is present #1336
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#1336
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Due to its expected use case of being run on a fresh system before borgmatic is set up yet, the
bootstrapaction does not expect borgmatic configuration. However, due to a quirk in the way that command-line arguments override configuration file options, if you runbootstrapwith a--verbosityflag, thenbootstrapignores that value unless you also provide a configuration file, e.g. with--config.Steps to reproduce
Actual behavior
(Note the lack of debug logs.)
Expected behavior
Other notes / implementation ideas
The above correct debug logs appear when you add
--config test.yaml(with any valid config file) on the command-line. This is because there's now in-memory config file data to set the--verbosityvalue into, which is how borgmatic actually accesses the verbosity in order to configure logging at the relevant level.borgmatic version
main
borgmatic installation method
uv tool install --editable
Borg version
1.4.4
Python version
3.14.16
Database version (if applicable)
No response
Operating system and version
Manjaro stable
bootstrap action ignores "--verbosity" unless "--config" flag is also usedto bootstrap action ignores "--verbosity" when no configuration is presentFixed in main! Will be part of the next release.
Released in borgmatic 2.1.7!