Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary logs #1230

Merged
merged 1 commit into from
Jun 25, 2024
Merged
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
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
Loading