diff --git a/mountpoint-s3/src/logging.rs b/mountpoint-s3/src/logging.rs index 3fe624bb7..c26638d71 100644 --- a/mountpoint-s3/src/logging.rs +++ b/mountpoint-s3/src/logging.rs @@ -149,6 +149,6 @@ fn init_tracing_subscriber(config: LoggingConfig) -> anyhow::Result<()> { Ok(()) } -pub fn record_name(name: &str) -> Span { - Span::current().record("name", name).clone() +pub fn record_name(name: &str) { + Span::current().record("name", name); }