This bypasses returning the direct source of the error (Some(&self.inner)), so for example there's no way to let Some(source) = try_init_error.source() && source.is::<tracing_log::log_tracer::SetLoggerError>() to check if the failure reason was initializing the tracing-log logger.
Bug Report
Version
Crates
tracing-subscriber
Description
https://github.com/tokio-rs/tracing/blob/8ba80ae82371638aa749436e4f284b65adf9ff90/tracing-subscriber/src/util.rs#L150-L152
This bypasses returning the direct source of the error (
Some(&self.inner)
), so for example there's no way tolet Some(source) = try_init_error.source() && source.is::<tracing_log::log_tracer::SetLoggerError>()
to check if the failure reason was initializing thetracing-log
logger.