Skip to content

GEN-159: Local install_debug_hook #4524

@tisonkun

Description

@tisonkun

Related Problem

Report::install_debug_hook / Report::set_color_mode / Report::set_charset seems all global settings.

I'd prefer to switch the manner locally. For example, I'd switch the manner when returning HTTP error response to trim the Backtrace with Report::install_debug_hook::<std::backtrace::Backtrace>(|_, _| {}); as well as use ASCII and no color, but I'm OK with these settings in all other situations.

Proposed Solution

No idea. I'm not quite sure about the philosophy.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

area/dxImprovements or additions to DX or docsarea/libsRelates to first-party libraries/crates/packages (area)area/libs > error-stackAffects the `error-stack` crate (library)category/enhancementNew feature or requestlang/rustPull requests that update Rust codepriority/3 lowLower priority: nice-to-have

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions