2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00

Add logs for pict-rs binds

This commit is contained in:
asonix 2024-02-01 21:55:31 -06:00
parent 92fd3bf2fd
commit 3a6faef5ef

View file

@ -2013,11 +2013,15 @@ async fn launch_file_store<F: Fn(&mut web::ServiceConfig) + Send + Clone + 'stat
.with_no_client_auth() .with_no_client_auth()
.with_cert_resolver(rx); .with_cert_resolver(rx);
tracing::info!("Staring pict-rs with TLS on {address}");
server.bind_rustls_021(address, config)?.run().await?; server.bind_rustls_021(address, config)?.run().await?;
handle.abort(); handle.abort();
let _ = handle.await; let _ = handle.await;
} else { } else {
tracing::info!("Staring pict-rs on {address}");
server.bind(address)?.run().await?; server.bind(address)?.run().await?;
} }