Skip to content

Commit

Permalink
chore: Downgrade some log level from debug to trace
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWaWaR authored and doitian committed Apr 10, 2019
1 parent b00844b commit 4648db2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions network/src/protocols/mod.rs
Expand Up @@ -11,7 +11,7 @@ use crate::{
NetworkState, PeerIndex, ProtocolContext, ProtocolContextMutRef, ServiceControl, SessionInfo,
};
use bytes::Bytes;
use log::{debug, error, info, warn};
use log::{trace, debug, error, info, warn};
use p2p::{
builder::MetaBuilder,
service::{ProtocolHandle, ProtocolMeta},
Expand Down Expand Up @@ -242,7 +242,7 @@ impl ServiceProtocol for CKBHandler {
.map(|peer_index| (peer_id, peer_index))
})
{
debug!(
trace!(
target: "network",
"ckb protocol received, addr: {}, protocol: {}, peer_id: {:?}",
session.address,
Expand Down
8 changes: 4 additions & 4 deletions sync/src/synchronizer/block_fetcher.rs
Expand Up @@ -10,7 +10,7 @@ use ckb_shared::index::ChainIndex;
use ckb_traits::ChainProvider;
use ckb_util::try_option;
use faketime::unix_time_as_millis;
use log::debug;
use log::{debug, trace};
use numext_fixed_hash::H256;
use numext_fixed_uint::U256;
use std::cmp;
Expand Down Expand Up @@ -48,7 +48,7 @@ where
.or_insert_with(Default::default);

if inflight.timestamp < unix_time_as_millis().saturating_sub(BLOCK_DOWNLOAD_TIMEOUT) {
debug!(target: "sync", "[block downloader] inflight block download timeout");
trace!(target: "sync", "[block downloader] inflight block download timeout");
inflight.clear();
}

Expand Down Expand Up @@ -123,7 +123,7 @@ where
}

pub fn fetch(self) -> Option<Vec<H256>> {
debug!(target: "sync", "[block downloader] BlockFetcher process");
trace!(target: "sync", "[block downloader] BlockFetcher process");

if self.initial_and_check_inflight() {
debug!(target: "sync", "[block downloader] inflight count reach limit");
Expand All @@ -133,7 +133,7 @@ where
let best_known_header = match self.peer_best_known_header() {
Some(best_known_header) => best_known_header,
_ => {
debug!(target: "sync", "[block downloader] peer_best_known_header not found peer={}", self.peer);
trace!(target: "sync", "[block downloader] peer_best_known_header not found peer={}", self.peer);
return None;
}
};
Expand Down

0 comments on commit 4648db2

Please sign in to comment.