summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-07-30 20:09:47 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-07-30 20:09:50 +0200
commitae38752e503ce921bea34e72415be4b4aadcdf68 (patch)
treeb7a1fcac8779e5757a10204407d28f5fa5f8754c /src/main.rs
parent99968c72a5efbd535362e050baf314f9e0cff709 (diff)
chore: log if the user has logged in
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
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);
+ }
}
}