From 29e8a242b6a79ffaad8d16850806e7863a6122ee Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Fri, 5 Sep 2025 09:21:10 +0200 Subject: [PATCH] misc: tracer: drop `extern crate`, use modern rust This commit is part of a series of similar commits. Signed-off-by: Philipp Schuster On-behalf-of: SAP philipp.schuster@sap.com --- tracer/src/lib.rs | 4 ---- tracer/src/tracer.rs | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tracer/src/lib.rs b/tracer/src/lib.rs index 40677cf8b..4c68f8937 100644 --- a/tracer/src/lib.rs +++ b/tracer/src/lib.rs @@ -3,10 +3,6 @@ // SPDX-License-Identifier: Apache-2.0 // -#[cfg(feature = "tracing")] -#[macro_use] -extern crate log; - #[cfg(not(feature = "tracing"))] mod tracer_noop; #[cfg(not(feature = "tracing"))] diff --git a/tracer/src/tracer.rs b/tracer/src/tracer.rs index 3ff20bebb..56694ff2b 100644 --- a/tracer/src/tracer.rs +++ b/tracer/src/tracer.rs @@ -13,6 +13,7 @@ use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::{Arc, Mutex}; use std::time::{Duration, Instant}; +use log::warn; use serde::Serialize; #[derive(Debug)]