Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix structured logging in holepunch coordination #1213

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

marten-seemann
Copy link
Contributor

No description provided.

@marten-seemann marten-seemann force-pushed the fix-holepunch-structured-logging branch 2 times, most recently from 1cd8d67 to be2d703 Compare October 2, 2021 16:59
@marten-seemann marten-seemann marked this pull request as ready for review October 2, 2021 17:05
@marten-seemann marten-seemann force-pushed the fix-holepunch-structured-logging branch from be2d703 to b0a9660 Compare October 2, 2021 17:15
@@ -174,7 +174,7 @@ func (hs *Service) beginDirectConnect(p peer.ID) error {
// It first attempts a direct dial (if we have a public address of that peer), and then
// coordinates a hole punch over the given relay connection.
func (hs *Service) DirectConnect(p peer.ID) error {
log.Debugw("got inbound proxy conn from peer", p)
log.Debugw("got inbound proxy conn", "peer", p.Pretty())
Copy link
Member

Choose a reason for hiding this comment

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

No need to call Pretty(), the peer ID will get encoded on-demand if debug logging is enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@marten-seemann marten-seemann merged commit 7d06b23 into master Oct 5, 2021
@marten-seemann marten-seemann deleted the fix-holepunch-structured-logging branch October 5, 2021 14:13
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
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.

2 participants