Skip to content

Commit

Permalink
strand-cam: show listen address
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Jul 8, 2024
1 parent 1877c5f commit fa91c9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions strand-cam/src/strand-cam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1778,6 +1778,7 @@ where

let (listener, http_camserver_info) =
flydra_types::start_listener(&strand_cam_bui_http_address_string).await?;
let listen_addr = listener.local_addr()?;

let mut transmit_msg_tx = None;
if let Some(first_msg_tx) = first_msg_tx {
Expand Down Expand Up @@ -2168,9 +2169,9 @@ where

// Display where we are listening.
if is_braid {
debug!("Strand Cam predicted URL: {url}");
debug!("Strand Cam listening at {listen_addr}, predicted URL: {url}");
} else {
info!("Strand Cam predicted URL: {url}");
info!("Strand Cam listening at {listen_addr}, predicted URL: {url}");
if !flydra_types::is_loopback(&url) {
println!("QR code for {url}");
display_qr_url(&format!("{url}"));
Expand Down

0 comments on commit fa91c9b

Please sign in to comment.