Add/tweak just a bit of fancy logging

This commit is contained in:
Paul van Tilburg 2020-10-10 21:14:10 +02:00
parent 561f10e2ab
commit 619261eb97
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 2 additions and 1 deletions

View File

@ -107,6 +107,7 @@ async fn update_loop(mut rx: Receiver<()>) -> Result<()> {
let driver = WebDriver::new(&format!("http://localhost:{}", GECKO_DRIVER_PORT), &caps).await?;
// Go to the My Autarco site and login
println!("⚡ Logging in...");
login(&driver).await.expect("Failed to log in");
let mut last_updated = 0;
@ -151,7 +152,7 @@ async fn update_loop(mut rx: Receiver<()>) -> Result<()> {
total_kwh,
last_updated,
};
println!("Updated status to: {:#?}", status);
println!("Updated status to: {:#?}", status);
status_guard.replace(status);
}