From 1a9163639c374b8e1de5e36c0ed7e50db8398423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 31 May 2023 00:53:59 +0300 Subject: [PATCH] chore(log): add startup log for showing the server address --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d3f8248..a80f54e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 }