chore(log): add startup log for showing the server address
This commit is contained in:
parent
ea01ba5794
commit
1a9163639c
|
@ -156,7 +156,7 @@ async fn main() -> IoResult<()> {
|
||||||
.wrap(Logger::default())
|
.wrap(Logger::default())
|
||||||
.configure(server::configure_routes)
|
.configure(server::configure_routes)
|
||||||
})
|
})
|
||||||
.bind(server_config.address)?;
|
.bind(&server_config.address)?;
|
||||||
|
|
||||||
// Set worker count for the server.
|
// Set worker count for the server.
|
||||||
if let Some(workers) = server_config.workers {
|
if let Some(workers) = server_config.workers {
|
||||||
|
@ -164,6 +164,7 @@ async fn main() -> IoResult<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run the server.
|
// Run the server.
|
||||||
|
log::info!("Server is running at {}", server_config.address);
|
||||||
http_server.run().await
|
http_server.run().await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue