Skip to content

Conversation

@mxinden
Copy link
Member

@mxinden mxinden commented Jun 24, 2022

Description

Print remote peer ID when seeing a second identify push stream coming in.

Most of the changes are needed to make IdentifyHandler aware of the peer ID of its remote.

Links to any relevant issues

Open Questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Print remote peer ID when seeing a second identify push stream coming in.
@mxinden
Copy link
Member Author

mxinden commented Jun 24, 2022

//CC @BigLep this is the last pull request, making sure log messages on exceeding limits are useful.

@mxinden mxinden requested a review from thomaseizinger June 24, 2022 09:14
)),
EitherOutput::Second(fut) => {
if self.inbound_identify_push.replace(fut).is_some() {
warn!(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated: We might want to upgrade to tracing at some point so we can emit these values in a structured way.

Or we wait until log has a structured key-value support.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for structured logging, though not something I will focus on any time soon. Don't have an opinion on crates providing structured logging.

@mxinden mxinden merged commit 2c70c59 into libp2p:master Jun 26, 2022
Copy link
Contributor

@BigLep BigLep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mxinden . Looks good from a messaging regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants