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

use human-readable address in error log of send_packet #155

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

keepsimple1
Copy link
Owner

@keepsimple1 keepsimple1 commented Dec 6, 2023

SockAddr of socket2 is not logging friendly: even its debug format is not human-readable:

SockAddr { ss_len: 0, ss_family: 2, len: 16 }

This patch is to log the actual human-readable addresses using SocketAddr of std. Now the log would read:

224.0.0.251:5353

@keepsimple1 keepsimple1 merged commit 95e411b into main Dec 7, 2023
3 checks passed
@keepsimple1 keepsimple1 deleted the error-msg branch December 7, 2023 18:58
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.

1 participant