From 619261eb970fd7dd906d395013e288bfb241e6ab Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 10 Oct 2020 21:14:10 +0200 Subject: [PATCH] Add/tweak just a bit of fancy logging --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c713a8f..16dc66a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); }