diff --git a/iroh/src/sync/live.rs b/iroh/src/sync/live.rs index 6fb368c3b00..379c5c5892f 100644 --- a/iroh/src/sync/live.rs +++ b/iroh/src/sync/live.rs @@ -15,7 +15,7 @@ use iroh_net::{tls::PeerId, MagicEndpoint}; use iroh_sync::sync::{InsertOrigin, Replica, SignedEntry}; use serde::{Deserialize, Serialize}; use tokio::{sync::mpsc, task::JoinError}; -use tracing::error; +use tracing::{debug, error}; const CHANNEL_CAP: usize = 8; @@ -120,15 +120,12 @@ impl Actor { Self { gossip, - // replica, endpoint, - // gossip_stream: gossip_subscription, insert_entry_rx: insert_rx, insert_entry_tx: insert_tx, to_actor_rx, sync_state: Default::default(), pending_syncs: Default::default(), - // initial_peers, pending_joins: Default::default(), docs: Default::default(), subscription: sub, @@ -191,9 +188,9 @@ impl Actor { let endpoint = self.endpoint.clone(); let doc = doc.clone(); async move { - println!("> connect and sync with {peer}"); + debug!("sync with {peer}"); let res = connect_and_sync(&endpoint, &doc, peer, &[]).await; - println!("> sync with {peer} done: {res:?}"); + debug!("> synced with {peer}: {res:?}"); (topic, peer, res) } .boxed()