Skip to content

Commit

Permalink
Merge pull request fedimint#6485 from tvolk131/cleanup_logging
Browse files Browse the repository at this point in the history
chore: remove unused code from fedimint-logging
  • Loading branch information
tvolk131 authored Dec 4, 2024
2 parents 0be2786 + fe96c8b commit c47c495
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions fedimint-logging/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
use tracing_subscriber::{EnvFilter, Layer};

pub const LOG_BLOCKCHAIN: &str = "fm::net::blockchain";
pub const LOG_CONSENSUS: &str = "fm::consensus";
pub const LOG_CORE: &str = "fm::core";
pub const LOG_DB: &str = "fm::db";
Expand All @@ -45,7 +44,6 @@ pub const LOG_CLIENT_NET_API: &str = "fm::client::net::api";
pub const LOG_CLIENT_BACKUP: &str = "fm::client::backup";
pub const LOG_CLIENT_RECOVERY: &str = "fm::client::recovery";
pub const LOG_CLIENT_RECOVERY_MINT: &str = "fm::client::recovery::mint";
pub const LOG_CLIENT_MODULE_META: &str = "fm::client::module::meta";
pub const LOG_CLIENT_MODULE_MINT: &str = "fm::client::module::mint";
pub const LOG_CLIENT_MODULE_LN: &str = "fm::client::module::ln";
pub const LOG_CLIENT_MODULE_WALLET: &str = "fm::client::module::wallet";
Expand All @@ -59,8 +57,6 @@ pub struct TracingSetup {
tokio_console_bind: Option<std::net::SocketAddr>,
#[cfg(feature = "telemetry")]
with_jaeger: bool,
#[cfg(feature = "telemetry")]
with_chrome: bool,
with_file: Option<File>,
}

Expand All @@ -79,13 +75,6 @@ impl TracingSetup {
self
}

/// Setup telemetry through Chrome <https://docs.rs/tracing-chrome>
#[cfg(feature = "telemetry")]
pub fn with_chrome(&mut self, enabled: bool) -> &mut Self {
self.with_chrome = enabled;
self
}

pub fn with_file(&mut self, file: Option<File>) -> &mut Self {
self.with_file = file;
self
Expand Down

0 comments on commit c47c495

Please sign in to comment.