From b968753e8c7c9b6aab62d1eac139460d512042ff Mon Sep 17 00:00:00 2001 From: Skot Date: Sat, 7 Mar 2026 17:52:47 -0500 Subject: [PATCH] fix(tracing): remove unused imports --- mujina-miner/src/tracing.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mujina-miner/src/tracing.rs b/mujina-miner/src/tracing.rs index e22b5ee..120e614 100644 --- a/mujina-miner/src/tracing.rs +++ b/mujina-miner/src/tracing.rs @@ -8,10 +8,13 @@ //! access to the `trace!()`, `debug!()`, `info!()`, `warn!()`, and `error!()` //! macros. -use std::{env, fmt}; +use std::fmt; +#[cfg(target_os = "linux")] +use std::env; use time::OffsetDateTime; use tracing::field::{Field, Visit}; use tracing::{Event, Level, Subscriber}; +#[cfg(target_os = "linux")] use tracing_journald; use tracing_subscriber::{ filter::{EnvFilter, LevelFilter}, @@ -35,8 +38,6 @@ pub mod prelude { pub use tracing::{debug, error, info, trace, warn}; } -use prelude::*; - /// Check if stderr is connected to systemd journal by validating JOURNAL_STREAM. /// /// Per systemd documentation, programs should parse the device and inode numbers @@ -91,7 +92,7 @@ pub fn init_journald_or_stdout() { tracing_subscriber::registry().with(layer).init(); return; } else { - error!("Failed to initialize journald logging, using stdout."); + tracing::error!("Failed to initialize journald logging, using stdout."); } } }