Skip to content

Commit

Permalink
log address and port
Browse files Browse the repository at this point in the history
  • Loading branch information
corwinkuiper committed Jan 2, 2024
1 parent 2f4bed4 commit 90beb8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin/webserver/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ fn main() -> Result<(), Box<dyn Error>> {

let sem = Semaphore::new(avail);

rouille::start_server(format!("0.0.0.0:{}", port), move |request| {
let address = "0.0.0.0";

tracing::info!(address, port, "Starting server");

rouille::start_server(format!("{address}:{port}"), move |request| {
let _span = tracing::span!(tracing::Level::TRACE, "handling_request").entered();
let log_ok =
|req: &rouille::Request, resp: &rouille::Response, elap: std::time::Duration| {
Expand Down

0 comments on commit 90beb8d

Please sign in to comment.