move default backtrace setting to sys
This commit is contained in:
parent
13afbdaa06
commit
d1712f49d7
3 changed files with 10 additions and 3 deletions
|
@ -308,8 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
|
|||
BacktraceStyle::Short
|
||||
}
|
||||
})
|
||||
.unwrap_or(if cfg!(target_os = "fuchsia") {
|
||||
// Fuchsia components default to full backtrace.
|
||||
.unwrap_or(if crate::sys::BACKTRACE_DEFAULT {
|
||||
BacktraceStyle::Full
|
||||
} else {
|
||||
BacktraceStyle::Off
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue