chore(log): add startup log for showing the server address

This commit is contained in:
Orhun Parmaksız 2023-05-31 00:53:59 +03:00
parent ea01ba5794
commit 1a9163639c
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,7 @@ async fn main() -> IoResult<()> {
.wrap(Logger::default())
.configure(server::configure_routes)
})
.bind(server_config.address)?;
.bind(&server_config.address)?;
// Set worker count for the server.
if let Some(workers) = server_config.workers {
@ -164,6 +164,7 @@ async fn main() -> IoResult<()> {
}
// Run the server.
log::info!("Server is running at {}", server_config.address);
http_server.run().await
}