/// Expand the initialization code for the `tracing` crate.
Expand the initialization code for the `tracing` crate.
Expand the initialization code for the ` tracing ` crate .
fn expand_tracing_init() -> Tokens {
  #[cfg(feature = "trace")]
  quote! {
    let _guard = {
      use ::tracing_subscriber::layer::SubscriberExt;
      let subscriber = ::tracing_subscriber::FmtSubscriber::builder()
        .with_env_filter(::tracing_subscriber::EnvFilter::from_default_env())
        .finish()
        .with(::tracing_error::ErrorLayer::default());
      ::tracing::subscriber::set_default(subscriber)
    };
  }
  #[cfg(not(feature = "trace"))]
  quote! {}
}
fn expand_tracing_init ( ) -> Tokens { # [ cfg ( feature " " ) ] quote ! { let _guard { use tracing_subscriber layer SubscriberExt let subscriber tracing_subscriber FmtSubscriber builder ( ) with_env_filter ( tracing_subscriber EnvFilter from_default_env ( ) ) finish ( ) with ( tracing_error ErrorLayer default ( ) ) tracing subscriber set_default ( subscriber ) } } # [ cfg ( not ( feature " " ) ) ] quote ! { } }
Expand the initialization code for the `tracing` crate.
Expand the initialization code for the ` tracing ` crate .