mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-20 15:05:19 +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>,
|
ev: Libp2pEvent<RequestId>,
|
||||||
shutdown_sender: &mut Sender<ShutdownReason>,
|
shutdown_sender: &mut Sender<ShutdownReason>,
|
||||||
) {
|
) {
|
||||||
debug!(?ev, "Received new event from libp2p");
|
trace!(?ev, "Received new event from libp2p");
|
||||||
|
|
||||||
match ev {
|
match ev {
|
||||||
Libp2pEvent::Behaviour(event) => match event {
|
Libp2pEvent::Behaviour(event) => match event {
|
||||||
@ -221,7 +221,7 @@ impl RouterService {
|
|||||||
msg: NetworkMessage,
|
msg: NetworkMessage,
|
||||||
_shutdown_sender: &mut Sender<ShutdownReason>,
|
_shutdown_sender: &mut Sender<ShutdownReason>,
|
||||||
) {
|
) {
|
||||||
debug!(?msg, "Received new message");
|
trace!(?msg, "Received new message");
|
||||||
|
|
||||||
match msg {
|
match msg {
|
||||||
NetworkMessage::SendRequest {
|
NetworkMessage::SendRequest {
|
||||||
|
@ -117,7 +117,7 @@ impl SerialBatcher {
|
|||||||
Err(_) => return false,
|
Err(_) => return false,
|
||||||
};
|
};
|
||||||
|
|
||||||
debug!(%announced_tx_seq, "Received file announcement");
|
trace!(%announced_tx_seq, "Received file announcement");
|
||||||
|
|
||||||
// new file announced
|
// new file announced
|
||||||
if self.max_tx_seq == u64::MAX || announced_tx_seq > self.max_tx_seq {
|
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) {
|
async fn on_sync_msg(&mut self, msg: SyncMessage) {
|
||||||
debug!("Sync received message {:?}", msg);
|
trace!("Sync received message {:?}", msg);
|
||||||
|
|
||||||
match msg {
|
match msg {
|
||||||
SyncMessage::DailFailed { peer_id, err } => {
|
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) {
|
async fn on_announce_file_gossip(&mut self, tx_id: TxID, peer_id: PeerId, addr: Multiaddr) {
|
||||||
let tx_seq = tx_id.seq;
|
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 {
|
if let Some(send) = &self.file_announcement_send {
|
||||||
let _ = send.send(tx_seq);
|
let _ = send.send(tx_seq);
|
||||||
|
Loading…
Reference in New Issue
Block a user