Skip to content

Commit

Permalink
chore(node): lower some log levels to reduce log size
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Apr 22, 2024
1 parent 5c6ab50 commit c3b91c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sn_networking/src/record_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl NodeRecordStore {
let process_entry = |entry: &DirEntry| -> _ {
let path = entry.path();
if path.is_file() {
info!("Existing record found: {path:?}");
trace!("Existing record found: {path:?}");
// if we've got a file, lets try and read it
let filename = match path.file_name().and_then(|n| n.to_str()) {
Some(file_name) => file_name,
Expand Down
2 changes: 1 addition & 1 deletion sn_networking/src/replication_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl ReplicationFetcher {
pub(crate) fn next_keys_to_fetch(&mut self) -> Vec<(PeerId, RecordKey)> {
self.prune_expired_keys_and_slow_nodes();

info!("Next to fetch....");
trace!("Next to fetch....");

if self.on_going_fetches.len() >= MAX_PARALLEL_FETCH {
warn!("Replication Fetcher doesn't have free fetch capacity. Currently has {} entries in queue.",
Expand Down
4 changes: 2 additions & 2 deletions sn_node/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl Node {
}
NetworkEvent::KeysToFetchForReplication(keys) => {
event_header = "KeysToFetchForReplication";
info!("Going to fetch {:?} keys for replication", keys.len());
trace!("Going to fetch {:?} keys for replication", keys.len());
self.record_metrics(Marker::fetching_keys_for_replication(&keys));

if let Err(err) = self.fetch_replication_keys_without_wait(keys) {
Expand Down Expand Up @@ -756,7 +756,7 @@ fn received_valid_chunk_proof(
) -> Option<()> {
if let Ok(Response::Query(QueryResponse::GetChunkExistenceProof(Ok(proof)))) = resp {
if expected_proof.verify(&proof) {
debug!(
trace!(
"Got a valid ChunkProof of {key:?} from {peer:?}, during peer chunk proof check."
);
Some(())
Expand Down
2 changes: 1 addition & 1 deletion sn_node/src/put_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl Node {
};

// finally store the Record directly into the local storage
debug!("Storing chunk {chunk_name:?} as Record locally");
trace!("Storing chunk {chunk_name:?} as Record locally");
self.network.put_local_record(record);

self.record_metrics(Marker::ValidChunkRecordPutFromNetwork(&pretty_key));
Expand Down

0 comments on commit c3b91c5

Please sign in to comment.