We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8dc16e8 + 7eb42c9 commit 59156afCopy full SHA for 59156af
src/libstd/sys_common/backtrace.rs
@@ -117,6 +117,12 @@ where
117
// For now logging is turned off by default, and this function checks to see
118
// whether the magical environment variable is present to see if it's turned on.
119
pub fn log_enabled() -> Option<PrintFmt> {
120
+ // Setting environment variables for Fuchsia components isn't a standard
121
+ // or easily supported workflow. For now, always display backtraces.
122
+ if cfg!(target_os = "fuchsia") {
123
+ return Some(PrintFmt::Full);
124
+ }
125
+
126
static ENABLED: atomic::AtomicIsize = atomic::AtomicIsize::new(0);
127
match ENABLED.load(Ordering::SeqCst) {
128
0 => {}
0 commit comments