Skip to content

Commit

Permalink
Remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed Jun 25, 2024
1 parent 7a563af commit 485a736
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions mutiny-core/src/networking/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use async_trait::async_trait;
use futures::stream::SplitStream;
use futures::{lock::Mutex, stream::SplitSink, SinkExt, StreamExt};
use gloo_net::websocket::{futures::WebSocket, Message, State};
use lightning::{log_debug, log_trace};
use lightning::log_debug;
use lightning::{log_error, util::logger::Logger};
use std::sync::Arc;

Expand Down Expand Up @@ -88,9 +88,7 @@ impl Proxy for WsProxy {
utils::spawn(async move {
let mut write = cloned_conn.lock().await;
match write.send(data).await {
Ok(_) => {
log_trace!(logger, "sent data down websocket");
}
Ok(_) => (),
Err(e) => {
log_error!(logger, "error sending data down websocket: {e}");
}
Expand Down
2 changes: 0 additions & 2 deletions mutiny-core/src/networking/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ pub fn schedule_descriptor_read<P: PeerManager>(
if let Some(msg) = msg_option {
match msg {
Ok(b) => {
log_trace!(logger, "received binary data from websocket: {}", b.len());

let read_res = peer_manager.read_event(&mut descriptor, &b);
match read_res {
Ok(_read_bool) => {
Expand Down
1 change: 0 additions & 1 deletion mutiny-core/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ impl<S: MutinyStorage> NodeBuilder<S> {

pub fn log_params(&self, logger: &Arc<MutinyLogger>) {
log_debug!(logger, "build parameters:");
log_debug!(logger, "- xprivkey: {:?}", self.xprivkey);
log_debug!(logger, "- uuid: {:?}", self.uuid);
log_debug!(logger, "- node_index: {:?}", self.node_index);
log_debug!(logger, "- gossip_sync: {:#?}", self.gossip_sync.is_some());
Expand Down

0 comments on commit 485a736

Please sign in to comment.