Skip to content

Commit

Permalink
Log "no recent temperatures" as debug, to keep the logs short.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Dec 1, 2024
1 parent ecd8d30 commit 03aee5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@
//! systemctl start brewfatherlog
//! ```
mod config;

use crate::config::Config;
use brewfatherlog::brewfather::{Brewfather, BrewfatherLoggingEvent};
use brewfatherlog::grainfather::{Fermenter, FermenterId, Grainfather, TemperatureRecord};
use log::{error, info, warn};
use log::{debug, error, info, warn};
use simplelog::{
format_description, ColorChoice, CombinedLogger, LevelFilter, TermLogger, TerminalMode,
WriteLogger,
Expand All @@ -71,6 +69,8 @@ use std::time::Duration;
use time::OffsetDateTime;
use tokio::time::sleep;

mod config;

pub const PROGRAM_NAME: &str = env!("CARGO_PKG_NAME");
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

Expand Down Expand Up @@ -200,7 +200,7 @@ async fn main_loop(config: Config) -> ! {
log_temperature(&brewfather, &mut last_logged, &ferm, temp_record).await;
}
Ok(None) => {
info!("No recent temperature record of fermenter \"{}\".", ferm.name);
debug!("No recent temperature record of fermenter \"{}\".", ferm.name);
}
Err(err) => {
error!("Error getting temperature of fermenter \"{}\": {}", ferm.name, err);
Expand Down

0 comments on commit 03aee5f

Please sign in to comment.