move println into error

This commit is contained in:
Edward Shen 2020-05-02 13:48:18 -04:00
parent c85190b626
commit 8c8b6a5400
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -58,7 +58,7 @@ async fn run() -> Result<(), KuranteError> {
}
if let Err(why) = client.start().await {
println!("An error occurred while running the client: {:?}", why);
error!("An error occurred while running the client: {:?}", why);
}
Ok(())