Skip to content

worker: Improve job failure error logging #8121

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

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Feb 14, 2024

anyhow by default only returns the top-most error when formatted via Display. The alternate formatting (:#) instructs it to return the full error chain instead. Unfortunately tracing does not support alternate formatting yet, so we have to call format!() manually.

`anyhow` by default only returns the top-most error when formatted via `Display`. The alternate formatting (`:#`) instructs it to return the full error chain instead. Unfortunately `tracing` does not support alternate formatting yet, so we have to call `format!()` manually.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Feb 14, 2024
@Turbo87 Turbo87 enabled auto-merge (squash) February 14, 2024 16:25
@Turbo87 Turbo87 merged commit ee1c7c4 into rust-lang:main Feb 14, 2024
@Turbo87 Turbo87 deleted the job-failure-logging branch February 14, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant