Keep startup going when the log warning fails #4980
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4980
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4979"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 16:18 UTC · original
andrewpozdnakov7-jpg:codex2/fix/log-open-warning→main· +4 −1 · 1 files · 1 commits · openRelated to #4974.
What it changes
Startup already falls back to console logging after the log file cannot be opened. Writing that warning with
eprintln!can panic if the stderr pipe has closed, so the fallback never returns. Use the same fallible stderr write as the logging thread and let initialization continue.How it was tested
5fabb46eand5329ffde669301d4b82944cfd5abad574932f6e8. The path was a directory and the parent closed the child's stderr pipe before allowing the write. Main exited with code 101. The patch returned the fallback and exited successfully.cargo xtask policy --stagedaccepted the file. Main's CI check has five existing Clippy errors tracked in #4708.Checked for overlap
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.