From a47f2a3428dfb05cd67fa28d9e8d82efec1e6581 Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Mon, 6 Dec 2021 18:48:07 -0600 Subject: [PATCH] Log on new span, no pretty --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/init_tracing.rs | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 53ed759..02387a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1347,7 +1347,7 @@ dependencies = [ [[package]] name = "pict-rs" -version = "0.3.0-beta.7" +version = "0.3.0-beta.8" dependencies = [ "actix-form-data", "actix-rt", diff --git a/Cargo.toml b/Cargo.toml index daee1ea..a979b61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pict-rs" description = "A simple image hosting service" -version = "0.3.0-beta.7" +version = "0.3.0-beta.8" authors = ["asonix "] license = "AGPL-3.0" readme = "README.md" diff --git a/src/init_tracing.rs b/src/init_tracing.rs index 8b22f64..0699b38 100644 --- a/src/init_tracing.rs +++ b/src/init_tracing.rs @@ -18,9 +18,8 @@ pub(super) fn init_tracing( opentelemetry::global::set_text_map_propagator(TraceContextPropagator::new()); let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")); - let format_layer = tracing_subscriber::fmt::layer() - .with_span_events(FmtSpan::CLOSE) - .pretty(); + let format_layer = + tracing_subscriber::fmt::layer().with_span_events(FmtSpan::NEW | FmtSpan::CLOSE); let subscriber = Registry::default() .with(env_filter)