-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
area/dxImprovements or additions to DX or docsImprovements or additions to DX or docsarea/libsRelates to first-party libraries/crates/packages (area)Relates to first-party libraries/crates/packages (area)area/libs > error-stackAffects the `error-stack` crate (library)Affects the `error-stack` crate (library)category/enhancementNew feature or requestNew feature or requestlang/rustPull requests that update Rust codePull requests that update Rust codepriority/3 lowLower priority: nice-to-haveLower priority: nice-to-have
Description
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 docsImprovements or additions to DX or docsarea/libsRelates to first-party libraries/crates/packages (area)Relates to first-party libraries/crates/packages (area)area/libs > error-stackAffects the `error-stack` crate (library)Affects the `error-stack` crate (library)category/enhancementNew feature or requestNew feature or requestlang/rustPull requests that update Rust codePull requests that update Rust codepriority/3 lowLower priority: nice-to-haveLower priority: nice-to-have