From ae38752e503ce921bea34e72415be4b4aadcdf68 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 30 Jul 2021 20:09:47 +0200 Subject: chore: log if the user has logged in --- src/main.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 203dca2..270af8e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,8 +19,13 @@ async fn main() -> Result<(), Box> { unsafe { browser::init(&config.driver_url).await; - if let Err(e) = browser::login(&config).await { - panic!("You can't connect: `{}`, credentials are {:?}", e, config); + match browser::login(&config).await { + Ok(_) => { + log::info!("Logged in Smartedu"); + } + Err(e) => { + panic!("You can't connect: `{}`, credentials are {:?}", e, config); + } } } -- cgit v1.2.3-18-g5258