Wire the --verbose flag to the logger #7
Labels
No labels
wayfinder
grilling
wayfinder
map
wayfinder
prototype
wayfinder
research
wayfinder
task
workflow
needs-info
workflow
needs-triage
workflow
ready-for-agent
workflow
ready-for-human
workflow
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rosa/tomate#7
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 to build
tomate -vshould print the log lines the code already emits. Right now the--verboseflag is parsed and then thrown away:Argscarries aclap_verbosity_flag::Verbosityfield that nothing ever reads, and the logger is initialised with no filter derived from it. Everyinfo!in the codebase — creating the config file, writing the state file, archiving to history, executing a hook — is invisible unless the user happens to setRUST_LOG.The flag's verbosity level should drive the logger's filter, so
-v,-vvand-qbehave the way the flag's own help text implies.Acceptance criteria
tomate -v <command>prints theinfo!lines that command emits, withoutRUST_LOGset-vv,-vvv) admits progressively more detail, and-qsuppresses outputRUST_LOGstill works, or the interaction between the two is documented in the flag's helpBlocked by
None — can start immediately.