-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve test-utils and lower networking log level (#448)
- Loading branch information
Showing
10 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
use crate::debug; | ||
use crate::network::gossip::NetworkService; | ||
use crate::trace; | ||
|
||
impl NetworkService<'_> { | ||
#[tracing::instrument(skip(self, event))] | ||
pub async fn handle_dcutr_event(&mut self, event: libp2p::dcutr::Event) { | ||
debug!("DCUTR event: {event:?}"); | ||
trace!("DCUTR event: {event:?}"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
use crate::debug; | ||
use crate::network::gossip::NetworkService; | ||
use crate::trace; | ||
|
||
impl NetworkService<'_> { | ||
#[tracing::instrument(skip(self, event))] | ||
pub async fn handle_ping_event(&mut self, event: libp2p::ping::Event) { | ||
debug!("Ping event: {event:?}") | ||
trace!("Ping event: {event:?}") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
use crate::debug; | ||
use crate::network::gossip::NetworkService; | ||
use crate::trace; | ||
|
||
impl NetworkService<'_> { | ||
#[tracing::instrument(skip(self, event))] | ||
pub async fn handle_relay_event(&mut self, event: libp2p::relay::Event) { | ||
debug!("Relay event: {event:?}"); | ||
trace!("Relay event: {event:?}"); | ||
} | ||
|
||
#[tracing::instrument(skip(self, event))] | ||
pub async fn handle_relay_client_event(&mut self, event: libp2p::relay::client::Event) { | ||
debug!("Relay client event: {event:?}"); | ||
trace!("Relay client event: {event:?}"); | ||
} | ||
} |