Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add more logging to the network #4621

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jan 14, 2020

(I hesitated to label this PR as "insubstantial")

Adds more trace! logging to the network.
The most important one is the Failed to reach ..., which might help figuring out why nodes can't connect to each other. Most of the time the error is going to be either a boring "timeout" or a boring "connection rejected", but sometimes it's a "peer id mismatch", in which case it's important to know.

Additionally, we now use the next_event() method on the Swarm, which guarantees that None cannot be returned.

@tomaka tomaka added the A0-please_review Pull request needs code review. label Jan 14, 2020
@tomaka tomaka requested a review from arkpar January 14, 2020 15:31
@bkchr bkchr merged commit 5649259 into paritytech:master Jan 15, 2020
@tomaka tomaka deleted the network-more-logging branch January 15, 2020 12:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants