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

feat(holepunch): add logging when DirectConnect execution fails #3146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wlynxg
Copy link
Contributor

@wlynxg wlynxg commented Jan 21, 2025

No description provided.

@sukunrt
Copy link
Member

sukunrt commented Jan 21, 2025

There's already some logging within DirectConnect method. Have you found this specific log useful?

@wlynxg
Copy link
Contributor Author

wlynxg commented Jan 21, 2025

In beginDirectConnect, ErrHolePunchActive will be returned for a connection that is already hole punching. This error is not logged. I hope to observe this error when I observe hole drilling behavior

@wlynxg
Copy link
Contributor Author

wlynxg commented Jan 21, 2025

On the other hand, we can't always rely on internal functions to print all errors once. Since DirectConnect is the outermost interface exposed, it seems to be a better solution to make a general print record of missed errors here (even if it may repeatedly print the error log that has been printed internally).

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