play: the run's log in <data>\logs as well as on the console #670
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!670
Loading…
Reference in a new issue
No description provided.
Delete branch "NotGomenesai/Darner:fix/play-log"
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?
darner playprinted its log to the console only, whiledarner zip-logslooks for the run's log viaDARNER_LOG_FILEor in<data>\logs(where only a failed start writes one). So a run started by hand, by a shortcut, or by a launcher that only reads the output gave a report zip with the crash logs alone. Cafe confirmed the file is never opened in play.rs and handed this over.What it changes
apps/darner/src/play_log.rs: at the start ofplay, the standard output and error go through a pipe; a thread copies each piece to the console (as before, UTF-16 to a console, bytes to a redirect) and into<data>\logs\darner-play-<date>-<time>-<pid>.log, colour codes left out, written as it comes so a crash loses nothing written before it.DARNER_LOG_FILEis set to that file, sozip-logs(and the in-game zip) take it.startup_error.rs:play_log()names the file with the existinglog_file(now taking its prefix); the ten newest play logs kept, as for start errors.DARNER_LOG_FILEis set already (whatever started the layer writes the log) or withDARNER_PLAY_LOG=0.Tested (RTX 3070, Windows 11)
darner playwith a missing exe: the error on the console and in a newdarner-play-*.log.🤖 Generated with Claude Code
Note: this restores pre-merge's behaviour (v2026.12.04.01 play.rs named darner-play--
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.