Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): enable backtrace on panic by default #5942

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Jan 4, 2024

RUST_BACKTRACE=1 only affects the backtrace reporting on panic. Unless explicitly disabled, we want to see full backtraces when an unexpected panic occurs.

Thanks sigp/lighthouse@58012f8

@shekhirin shekhirin added C-enhancement New feature or request A-observability Related to tracing, metrics, logs and other observability tools A-cli Related to the reth CLI labels Jan 4, 2024
@shekhirin shekhirin marked this pull request as ready for review January 4, 2024 15:15
@shekhirin shekhirin changed the title feat(cli): enable backtrace on panic by default, unless manually set feat(cli): enable backtrace on panic by default Jan 4, 2024
Comment on lines +12 to +15
// Enable backtraces unless a RUST_BACKTRACE value has already been explicitly provided.
if std::env::var("RUST_BACKTRACE").is_err() {
std::env::set_var("RUST_BACKTRACE", "1");
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we do this for the OP bin as well?

@mattsse mattsse added this pull request to the merge queue Jan 4, 2024
Merged via the queue into main with commit 0520c62 Jan 4, 2024
27 checks passed
@mattsse mattsse deleted the alexey/backtrace-1 branch January 4, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the reth CLI A-observability Related to tracing, metrics, logs and other observability tools C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants