Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2022-05-12 10:16:50 -06:00
parent 9ca6e29a17
commit e795a7a578

View file

@ -119,7 +119,7 @@ pub fn init_tracing(config: &Config) -> Option<()> {
use std::str::FromStr;
use tracing_opentelemetry::OpenTelemetryLayer;
use tracing_subscriber::layer::SubscriberExt;
let rust_trace = config.rust_log.clone()?;
let rust_log = config.rust_log.clone()?;
LogTracer::init().log_err()?;
@ -156,7 +156,7 @@ pub fn init_tracing(config: &Config) -> Option<()> {
tracing_subscriber::fmt::layer()
.event_format(tracing_subscriber::fmt::format().pretty()),
)
.with(EnvFilter::from_str(rust_trace.as_str()).log_err()?);
.with(EnvFilter::from_str(rust_log.as_str()).log_err()?);
tracing::subscriber::set_global_default(subscriber).unwrap();