Skip to content

Commit

Permalink
Merge pull request #107 from mineshp-mecha/dev-latest
Browse files Browse the repository at this point in the history
chore:log level changed to help debugging
  • Loading branch information
mineshp-mecha authored Aug 23, 2024
2 parents 0062042 + 15a8d7a commit e115375
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions networking/src/handshake_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use serde_json::json;
use tokio::net::UdpSocket;
use tokio::select;
use tokio::sync::{mpsc, oneshot};
use tracing::{error, info, warn};
use tracing::{error, info, trace, warn};

use crate::errors::{NetworkingError, NetworkingErrorCodes};
use crate::service::ChannelDetails;
Expand Down Expand Up @@ -97,7 +97,7 @@ impl HandshakeChannelHandler {
sock: &mut UdpSocket,
message_rx: &mut mpsc::Receiver<HandshakeMessage>,
) -> Result<()> {
info!(func = "run", package = PACKAGE_NAME, "init");
trace!(func = "run", package = PACKAGE_NAME, "init");
let mut buf = [0; 1024];
loop {
select! {
Expand Down Expand Up @@ -304,7 +304,6 @@ async fn process_handshake_request(
Err(e) => bail!(NetworkingError::new(
NetworkingErrorCodes::PayloadDeserializationError,
format!("error while deserializing message payload {}", e),

)),
};
info!(
Expand All @@ -331,7 +330,6 @@ async fn process_handshake_request(
Err(e) => bail!(NetworkingError::new(
NetworkingErrorCodes::PayloadDeserializationError,
format!("error while deserializing message payload {}", e),

)),
};
println!("manifest received: {:?}", reply_payload);
Expand Down

0 comments on commit e115375

Please sign in to comment.