Skip to content

Commit 9ae4d62

Browse files
committed
Add info-level logging for P2P message flow debugging
1 parent 52165c5 commit 9ae4d62

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

bins/validator-node/src/main.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,8 +3142,8 @@ async fn handle_message(
31423142
);
31433143
}
31443144
NetworkMessage::ChallengeMessage(challenge_msg) => {
3145-
debug!(
3146-
"Challenge message from {:?}: challenge={}, type={:?}",
3145+
info!(
3146+
"Received ChallengeMessage via P2P from {:?}: challenge={}, type={:?}",
31473147
signer, challenge_msg.challenge_id, challenge_msg.message_type
31483148
);
31493149

@@ -3236,9 +3236,10 @@ async fn handle_message(
32363236
platform_challenge_sdk::ChallengeP2PMessage,
32373237
>(&msg_payload)
32383238
{
3239-
debug!(
3240-
"Forwarding Custom({}) message to challenge container",
3241-
custom_type
3239+
info!(
3240+
"Forwarding Custom({}) P2P message to challenge container: {:?}",
3241+
custom_type,
3242+
std::mem::discriminant(&p2p_msg)
32423243
);
32433244
Some(p2p_msg)
32443245
} else {
@@ -3269,8 +3270,8 @@ async fn handle_message(
32693270
.await
32703271
{
32713272
Ok(resp) if resp.status().is_success() => {
3272-
debug!(
3273-
"Forwarded challenge message to {} (authenticated)",
3273+
info!(
3274+
"Successfully forwarded P2P message to challenge container '{}'",
32743275
challenge_id
32753276
);
32763277
}

0 commit comments

Comments
 (0)