Skip to content

Commit

Permalink
add more debug around disco
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Jan 3, 2024
1 parent d5aecb3 commit c1ea245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/commands/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ async fn poll_single_device(state: &StateHandle, device: &Device) -> anyhow::Res
if let Some(iot) = state.get_iot_client().await {
if let Some(info) = device.undoc_device_info.clone() {
log::info!("requesting update via IoT MQTT {device} {device_state:?}");
match iot
.request_status_update(&info.entry)
.await
{
match iot.request_status_update(&info.entry).await {
Err(err) => {
log::error!("Failed: {err:#}");
}
Expand Down
1 change: 1 addition & 0 deletions src/lan_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ async fn send_scan(options: &DiscoOptions) -> anyhow::Result<()> {
})
.expect("to serialize scan message");
for b in broadcasters {
log::trace!("Send disco packet to {:?}", b.addr);
if let Err(err) = b.broadcast(&scan).await {
log::error!("Error broadcasting to {b:?}: {err:#}");
}
Expand Down

0 comments on commit c1ea245

Please sign in to comment.