Log errors occuring when client keeps retrying connection to the server

This commit is contained in:
Imbris 2020-11-22 03:12:08 -05:00
parent 4e60d19762
commit 82b95974f1

View File

@ -12,7 +12,7 @@ use std::{
thread, thread,
time::Duration, time::Duration,
}; };
use tracing::{debug, trace, warn}; use tracing::{trace, warn};
#[derive(Debug)] #[derive(Debug)]
pub enum Error { pub enum Error {
@ -107,7 +107,7 @@ impl ClientInit {
)); ));
break 'tries; break 'tries;
} else { } else {
debug!("Cannot connect to server: Timeout (retrying...)"); warn!(?e, "Failed to connect to the server. Retrying...");
} }
}, },
Err(e) => { Err(e) => {