Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
e89ce263
Commit
e89ce263
authored
6 years ago
by
Pierre Krieger
Committed by
Gav Wood
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Minor logging improvements in libp2p (#2162)
parent
bbb45c76
Branches
gh-readonly-queue/master/pr-6782-4fc9248629fe8cd913bd05025c7690f99d7203d7
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/core/network-libp2p/src/custom_proto/behaviour.rs
+2
-1
2 additions, 1 deletion
substrate/core/network-libp2p/src/custom_proto/behaviour.rs
with
2 additions
and
1 deletion
substrate/core/network-libp2p/src/custom_proto/behaviour.rs
+
2
−
1
View file @
e89ce263
...
...
@@ -190,7 +190,7 @@ impl<TMessage, TSubstream> CustomProto<TMessage, TSubstream> {
/// Disconnects the given peer if we are connected to it.
pub
fn
disconnect_peer
(
&
mut
self
,
peer_id
:
&
PeerId
)
{
debug!
(
target
:
"sub-libp2p"
,
"Disconnect
ing
{:?}
by request from the external API
"
,
peer_id
);
debug!
(
target
:
"sub-libp2p"
,
"
External API =>
Disconnect {:?}"
,
peer_id
);
self
.disconnect_peer_inner
(
peer_id
,
None
);
}
...
...
@@ -302,6 +302,7 @@ impl<TMessage, TSubstream> CustomProto<TMessage, TSubstream> {
return
;
}
trace!
(
target
:
"sub-libp2p"
,
"External API => Packet for {:?}"
,
target
);
trace!
(
target
:
"sub-libp2p"
,
"Handler({:?}) <= Packet"
,
target
);
self
.events
.push
(
NetworkBehaviourAction
::
SendEvent
{
peer_id
:
target
.clone
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment