mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-10 10:05:17 +00:00
opt log level for file announcement relevant logs (#109)
This commit is contained in:
parent
816353dfd4
commit
e44db25807
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user