Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Downgrade some logs to `trace` level
Alexis Sellier committed 3 years ago
commit a8f0329391232f15d670548c3d987afbcf075902
parent 0e7ffcc9167b2b549c86ef0da30f388a94811589
1 file changed +5 -5
modified radicle-node/src/service.rs
@@ -424,7 +424,7 @@ where
    }

    pub fn tick(&mut self, now: LocalTime) {
-
        trace!("Tick +{}", now - self.start_time);
+
        trace!(target: "service", "Tick +{}", now - self.start_time);

        self.clock = now;
    }
@@ -826,14 +826,14 @@ where
                // Discard inventory messages we've already seen, otherwise update
                // out last seen time.
                if !peer.inventory_announced(announcement.clone()) {
-
                    debug!(target: "service", "Ignoring stale inventory announcement from {announcer} (t={})", self.time());
+
                    trace!(target: "service", "Ignoring stale inventory announcement from {announcer} (t={})", self.time());
                    return Ok(false);
                }

                match self.sync_routing(&message.inventory, *announcer, message.timestamp) {
                    Ok(synced) => {
                        if synced.is_empty() {
-
                            debug!(target: "service", "No routes updated by inventory announcement from {announcer}");
+
                            trace!(target: "service", "No routes updated by inventory announcement from {announcer}");
                            return Ok(false);
                        }
                    }
@@ -905,7 +905,7 @@ where
                // Discard announcement messages we've already seen, otherwise update
                // our last seen time.
                if !peer.refs_announced(message.rid, announcement.clone()) {
-
                    debug!(target: "service", "Ignoring stale refs announcement from {announcer} (time={timestamp})");
+
                    trace!(target: "service", "Ignoring stale refs announcement from {announcer} (time={timestamp})");
                    return Ok(false);
                }

@@ -951,7 +951,7 @@ where
                // Discard node messages we've already seen, otherwise update
                // our last seen time.
                if !peer.node_announced(announcement.clone()) {
-
                    debug!(target: "service", "Ignoring stale node announcement from {announcer}");
+
                    trace!(target: "service", "Ignoring stale node announcement from {announcer}");
                    return Ok(false);
                }