Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/interledger-api/src/routes/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ fn notify_user(
rx.forward(ws_tx)
.map(|result| {
if let Err(e) = result {
eprintln!("websocket send error: {}", e);
error!("websocket send error: {}", e);
}
})
.then(futures::future::ok)
Expand All @@ -549,7 +549,7 @@ fn notify_all_payments(
rx.forward(ws_tx)
.map(|result| {
if let Err(e) = result {
eprintln!("websocket send error: {}", e);
error!("websocket send error: {}", e);
}
})
.then(futures::future::ok)
Expand Down
10 changes: 5 additions & 5 deletions crates/interledger-service-util/src/echo_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::convert::TryFrom;
use std::marker::PhantomData;
use std::str;
use std::time::SystemTime;
use tracing::debug;
use tracing::{debug, error};

/// The prefix that echo packets should have in its data section
const ECHO_PREFIX: &str = "ECHOECHOECHOECHO";
Expand Down Expand Up @@ -73,7 +73,7 @@ where

// check echo packet type
if reader.remaining() < 1 {
eprintln!("Could not read packet type: Unexpected Eof");
error!("Could not read packet type: Unexpected Eof");
return Err(RejectBuilder {
code: ErrorCode::F01_INVALID_PACKET,
message: b"Could not read echo packet type.",
Expand All @@ -89,7 +89,7 @@ where
return self.next.handle_request(request).await;
}
if echo_packet_type != EchoPacketType::Request as u8 {
eprintln!("The packet type is not acceptable: {}", echo_packet_type);
error!("The packet type is not acceptable: {}", echo_packet_type);
return Err(RejectBuilder {
code: ErrorCode::F01_INVALID_PACKET,
message: format!(
Expand All @@ -108,7 +108,7 @@ where
Ok(value) => match Address::try_from(value) {
Ok(value) => value,
Err(error) => {
eprintln!(
error!(
"Could not parse source address from echo packet: {:?}",
error
);
Expand All @@ -122,7 +122,7 @@ where
}
},
Err(error) => {
eprintln!("Could not read source address: {:?}", error);
error!("Could not read source address: {:?}", error);
return Err(RejectBuilder {
code: ErrorCode::F01_INVALID_PACKET,
message: b"Could not read source address.",
Expand Down
3 changes: 0 additions & 3 deletions crates/interledger-stream/src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,6 @@ mod fuzzing {
}
.build();

println!("{:?}", pkt.buffer_unencrypted.chunk());
println!("{:?}", other.buffer_unencrypted.chunk());

assert_eq!(pkt, other);
}
}
Expand Down