Add/tweak just a bit of fancy logging
This commit is contained in:
parent
991b98f5f1
commit
4d86a505f3
|
@ -107,6 +107,7 @@ async fn update_loop(mut rx: Receiver<()>) -> Result<()> {
|
||||||
let driver = WebDriver::new(&format!("http://localhost:{}", GECKO_DRIVER_PORT), &caps).await?;
|
let driver = WebDriver::new(&format!("http://localhost:{}", GECKO_DRIVER_PORT), &caps).await?;
|
||||||
|
|
||||||
// Go to the My Autarco site and login
|
// Go to the My Autarco site and login
|
||||||
|
println!("⚡ Logging in...");
|
||||||
login(&driver).await.expect("Failed to log in");
|
login(&driver).await.expect("Failed to log in");
|
||||||
|
|
||||||
let mut last_updated = 0;
|
let mut last_updated = 0;
|
||||||
|
@ -151,7 +152,7 @@ async fn update_loop(mut rx: Receiver<()>) -> Result<()> {
|
||||||
total_kwh,
|
total_kwh,
|
||||||
last_updated,
|
last_updated,
|
||||||
};
|
};
|
||||||
println!("Updated status to: {:#?}", status);
|
println!("⚡ Updated status to: {:#?}", status);
|
||||||
status_guard.replace(status);
|
status_guard.replace(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue