Skip to content

Commit

Permalink
Show proper error messages instead of the Debug implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Dec 27, 2023
1 parent 422644b commit 25482a5
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 @@ -150,7 +150,7 @@ async fn log_temperature(
}
Err(err) => {
error!(
"Error logging the temperature of fermenter \"{}\" to brewfather: {:?}",
"Error logging the temperature of fermenter \"{}\" to brewfather: {}",
fermenter.name, err
);
}
Expand All @@ -172,7 +172,7 @@ async fn main_loop(config: Config) -> ! {
let grainfather = match init_grainfather().await {
Ok(grainfather) => grainfather,
Err(err) => {
error!("Error initializing grainfather client: {:?}", err);
error!("Error initializing grainfather client: {}", err);
sleep(Duration::from_secs(10)).await;
continue;
}
Expand All @@ -181,7 +181,7 @@ async fn main_loop(config: Config) -> ! {
let ferms = match grainfather.list_fermenters().await {
Ok(ferms) => ferms,
Err(err) => {
error!("Error getting fermenters: {:?}", err);
error!("Error getting fermenters: {}", err);
sleep(Duration::from_secs(10)).await;
continue;
}
Expand All @@ -199,7 +199,7 @@ async fn main_loop(config: Config) -> ! {
continue;
}
Err(err) => {
error!("Error getting temperature of fermenter \"{}\": {:?}", ferm.name, err);
error!("Error getting temperature of fermenter \"{}\": {}", ferm.name, err);
continue;
}
};
Expand Down

0 comments on commit 25482a5

Please sign in to comment.