Skip to content

Commit

Permalink
disable logging for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
narendasan committed Apr 20, 2020
1 parent 40cbd3d commit 927ac1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rtop"
version = "0.1.2"
version = "0.1.3"
authors = ["Naren Dasan <naren@narendasan.com>"]
description = "A system monitor implemented in Rust, Monitors both system activity and GPU activity for NVIDIA GPUs"
homepage = "https://github.com/narendasan/rtop"
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Expand Up @@ -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")]
Expand Down

0 comments on commit 927ac1b

Please sign in to comment.