opt log level for file announcement relevant logs (#109)

This commit is contained in:
Bo QIU 2024-07-04 16:30:05 +08:00 committed by GitHub
parent 816353dfd4
commit e44db25807
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -125,7 +125,7 @@ impl RouterService {
ev: Libp2pEvent<RequestId>,
shutdown_sender: &mut Sender<ShutdownReason>,
) {
debug!(?ev, "Received new event from libp2p");
trace!(?ev, "Received new event from libp2p");
match ev {
Libp2pEvent::Behaviour(event) => match event {
@ -221,7 +221,7 @@ impl RouterService {
msg: NetworkMessage,
_shutdown_sender: &mut Sender<ShutdownReason>,
) {
debug!(?msg, "Received new message");
trace!(?msg, "Received new message");
match msg {
NetworkMessage::SendRequest {

View File

@ -117,7 +117,7 @@ impl SerialBatcher {
Err(_) => return false,
};
debug!(%announced_tx_seq, "Received file announcement");
trace!(%announced_tx_seq, "Received file announcement");
// new file announced
if self.max_tx_seq == u64::MAX || announced_tx_seq > self.max_tx_seq {

View File

@ -214,7 +214,7 @@ impl SyncService {
}
async fn on_sync_msg(&mut self, msg: SyncMessage) {
debug!("Sync received message {:?}", msg);
trace!("Sync received message {:?}", msg);
match msg {
SyncMessage::DailFailed { peer_id, err } => {
@ -619,7 +619,7 @@ impl SyncService {
async fn on_announce_file_gossip(&mut self, tx_id: TxID, peer_id: PeerId, addr: Multiaddr) {
let tx_seq = tx_id.seq;
debug!(%tx_seq, %peer_id, %addr, "Received AnnounceFile gossip");
trace!(%tx_seq, %peer_id, %addr, "Received AnnounceFile gossip");
if let Some(send) = &self.file_announcement_send {
let _ = send.send(tx_seq);