diff options
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 7 insertions, 2 deletions
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<dyn Error>> { 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); + } } } |