Skip to content

Save every panic to a log file - #53

Merged
LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:52-panic-log
Nov 20, 2026
Merged

LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:52-panic-log

Conversation

@LudaLunizz

Copy link
Copy Markdown
Collaborator

Closes #52

The panic hook only printed to the terminal, so after a crash that dropped the user back to the shell nothing was left to trace.

It now also appends the panic message, version and a backtrace to noname/panic.log in the cache folder (XDG_CACHE_HOME or ~/.cache; LOCALAPPDATA on Windows) and prints where it was saved.

Checked: cargo test (new test: two reports are appended, not overwritten), cargo clippy --all-targets -- -D warnings, cargo fmt --check. Not checked: the Windows build, and a real panic in a running noname.

🤖 Generated with Claude Code

The panic hook only printed to the terminal, so a crash that dropped
the user back to the shell left nothing to trace afterwards. It now
also appends the panic message, version and a backtrace to
noname/panic.log in the cache folder (XDG_CACHE_HOME or ~/.cache,
LOCALAPPDATA on Windows) and prints where it was saved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d5d435e2-1dc2-48f3-8f7d-1381f9acf3d9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@LudaLunizz
LudaLunizz merged commit e42a0fa into Silvertree2010:main Nov 20, 2026
5 checks passed
@LudaLunizz LudaLunizz mentioned this pull request Nov 20, 2026
@LudaLunizz
LudaLunizz deleted the 52-panic-log branch November 27, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash to shell with "thread panicked", and the panic message is not saved anywhere

1 participant