From 927ac1bc1fc72d078f73ccaface071db09c052b8 Mon Sep 17 00:00:00 2001 From: Naren Dasan Date: Mon, 20 Apr 2020 14:10:28 -0600 Subject: [PATCH] disable logging for releases --- Cargo.toml | 4 ++-- src/main.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dfd3b32..f4dcab7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rtop" -version = "0.1.2" +version = "0.1.3" authors = ["Naren Dasan "] description = "A system monitor implemented in Rust, Monitors both system activity and GPU activity for NVIDIA GPUs" homepage = "https://github.com/narendasan/rtop" @@ -29,7 +29,7 @@ dirs = "1.0.5" [dependencies] termion = "1.5.5" -log = "0.4.8" +log = { version = "0.4.8", features = ["max_level_debug", "release_max_level_warn"] } stderrlog = "0.4.3" tui = "0.9.1" sysinfo = "0.10.3" diff --git a/src/main.rs b/src/main.rs index 0f31fc0..da0adeb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,11 +39,11 @@ fn _main() -> Result<(), Error> { .init() .unwrap(); - info!("Start"); + debug!("Start"); #[cfg(feature = "gpu-monitor")] - info!("GPU Monitoring Enabled"); + debug!("GPU Monitoring Enabled"); #[cfg(feature = "battery-monitor")] - info!("Battery Monitoring Enabled"); + debug!("Battery Monitoring Enabled"); //Program let mut app = App::new(5000, 50)?; #[cfg(feature = "gpu-monitor")]