Skip to content

Commit

Permalink
add debug to output reported and generated beacons (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck authored Feb 10, 2023
1 parent 83a8d17 commit ff3599a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iot_verifier/src/poc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ fn verify_beacon_payload(
tracing::warn!("failed to cast report to beacon, reason: {:?}", e);
InvalidReason::InvalidPacket
})?;
tracing::debug!("generated beacon {:?}", generated_beacon);

// cast the received beaconers report into a beacon
let reported_beacon: beacon::Beacon =
Expand All @@ -460,7 +461,7 @@ fn verify_beacon_payload(
return Err(InvalidReason::InvalidPacket);
}
};

tracing::debug!("reported beacon {:?}", reported_beacon);
// compare reports
if reported_beacon != generated_beacon {
tracing::debug!(
Expand Down

0 comments on commit ff3599a

Please sign in to comment.