Logging: say so when VICTORY_LOG or RUST_LOG does not parse #266
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!266
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/266/head"
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?
@SkippySteve on GitHub · 2026-11-24 01:54 UTC · original
SkippySteve/victory-pr-own-next10→main· +81 −6 · 1 files · 1 commits · closed without mergingA filter that tracing-subscriber rejects, for example
VICTORY_LOG=victory_loader=loud, was dropped silently and the binary logged at its default level, so a typo looked like the target had nothing to log.logging::initnow prints one line on stderr naming the variable, its value and the parse error, then falls back to the default level as before:Picking the filter moves into
choose_filter, so it can be tested without changing the process environment. Precedence is unchanged (VICTORY_LOG, then RUST_LOG, then the default).Tests (Linux):
cargo test -p victory-core: 13 passed, including 5 new tests (unset, VICTORY_LOG over RUST_LOG, RUST_LOG fallback, a bad value in each variable)cargo clippy -p victory-core --all-targets -- -D warnings, with and without--features diagnostics: cleancargo fmt --check: clean@SkippySteve on GitHub · 2026-11-24 02:34 UTC · original
Superseded by #241, which now carries this commit (warn on a bad VICTORY_LOG/RUST_LOG) unchanged.
Pull request closed