From 7811cc0ef14a2b3f4aea4c28fc754ad650162b95 Mon Sep 17 00:00:00 2001 From: jackra1n <45038833+jackra1n@users.noreply.github.com> Date: Sat, 18 May 2024 13:45:18 +0200 Subject: [PATCH] Use trace level debug inside the loop --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index b6d7de4..1fe25ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use std::fs; use std::thread; use std::time::{Duration, Instant}; use sysinfo::{System, Disks, RefreshKind, CpuRefreshKind, MemoryRefreshKind}; -use log::{info, debug}; +use log::{info, debug, trace}; use clap::Parser; use env_logger::{Builder, Env}; @@ -66,8 +66,8 @@ fn main() -> Result<(), Box> { let cpu_usage = format!("{:.1}", sys.global_cpu_info().cpu_usage()); let ram_usage = format!("{:.1}", get_ram_usage(&sys)); - debug!("Checking fan controller. Fan running: {}", fan_controller.is_running); - debug!("CPU Temp: {}, Temp-on: {}, Temp-off: {}", temp, fan_controller.temp_on, fan_controller.temp_off); + trace!("Checking fan controller. Fan running: {}", fan_controller.is_running); + trace!("CPU Temp: {}, Temp-on: {}, Temp-off: {}", temp, fan_controller.temp_on, fan_controller.temp_off); if fan_controller.is_running { if temp <= fan_controller.temp_off { fan_controller.fan_off()?;