shader: VICTORY_WAVE_WHY lines go to the log when there is one (Proton drops stderr) #82

Open
github-bot wants to merge 1 commit from github-bot/gh-82 into main AGit
Owner

@⁠Hasusmogus on GitHub · 2026-11-27 10:59 UTC · original
Hasusmogus:wave-why-log → main · +56 −5 · 4 files · 1 commits · open

Follow-up to 3a7e7e7: the VICTORY_WAVE_WHY lines are eprintln!, and under Proton nothing written to stderr reaches the terminal. VICTORY_LOG_FILE (the tracing log) didn't get them either, so the lines #39 and #80 ask for couldn't be collected on Linux.

  • wave_why! logs them through tracing at warn (target victory_shader::wave_why) when a dispatcher is set. That's warn so the launchers' VICTORY_LOG=warn shows them; they only appear with VICTORY_WAVE_WHY set anyway. Without a dispatcher (the tests) they go to stderr as before.
  • The own-bits line (WAVE64-OWN-BITS) goes through wave_why! too.
  • victory-shader gets tracing (workspace) as a dependency and tracing-subscriber as a dev-dependency.

Tested: a new test installs a subscriber writing to a buffer and checks that a line from within with_shader arrives as [hash] WAVE64-… at WARN (passes on Linux and under Wine). Clippy --workspace --all-targets [--all-features] -D warnings clean.

🤖 Generated with Claude Code

**@⁠Hasusmogus** on GitHub · 2026-11-27 10:59 UTC · [original](https://github.com/DoubleGhosty/cool_fox/pull/82) `Hasusmogus:wave-why-log` → `main` · +56 −5 · 4 files · 1 commits · open Follow-up to `3a7e7e7`: the `VICTORY_WAVE_WHY` lines are `eprintln!`, and under Proton nothing written to stderr reaches the terminal. `VICTORY_LOG_FILE` (the tracing log) didn't get them either, so the lines #39 and #80 ask for couldn't be collected on Linux. - `wave_why!` logs them through `tracing` at warn (target `victory_shader::wave_why`) when a dispatcher is set. That's warn so the launchers' `VICTORY_LOG=warn` shows them; they only appear with `VICTORY_WAVE_WHY` set anyway. Without a dispatcher (the tests) they go to stderr as before. - The own-bits line (`WAVE64-OWN-BITS`) goes through `wave_why!` too. - `victory-shader` gets `tracing` (workspace) as a dependency and `tracing-subscriber` as a dev-dependency. Tested: a new test installs a subscriber writing to a buffer and checks that a line from within `with_shader` arrives as `[hash] WAVE64-…` at WARN (passes on Linux and under Wine). Clippy `--workspace --all-targets [--all-features] -D warnings` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The WAVE64-* lines were eprintln!: under Proton nothing written to stderr
reaches the terminal, and VICTORY_LOG_FILE (the tracing log) did not get
them, so the lines #39 and #80 ask for could not be had there. wave_why!
now logs them at warn (target victory_shader::wave_why; the launchers'
VICTORY_LOG=warn shows them, and they come only with VICTORY_WAVE_WHY
set) when a dispatcher is set, and keeps stderr where there is none (the
tests). The own-bits line goes through it too.

Test: with a log, a line from within with_shader reaches it as
"[hash] WAVE64-..." at WARN.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 11:03:01 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/82/head:github-bot/gh-82'
git switch 'github-bot/gh-82'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-82'
git switch 'github-bot/gh-82'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-82'
git switch 'github-bot/gh-82'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-82'
git switch 'main'
git merge --squash 'github-bot/gh-82'
git switch 'main'
git merge --ff-only 'github-bot/gh-82'
git switch 'main'
git merge 'github-bot/gh-82'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.