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

Fixes #189 -- include socket peer info in lager messages #400

Merged
merged 2 commits into from
Oct 4, 2013

Conversation

slfritchie
Copy link
Contributor

Subject says it all ... the handoff protocol doesn't include the node name of the source node, so the best we can do without a protocol change (and capability negotiation and ...) is to log the socket's peername() info.

@ghost ghost assigned engelsanchez Sep 30, 2013
@engelsanchez
Copy link
Contributor

Given all the talk about less erlangy log messages lately, I was wondering if it would be OK to display the peername as ip:port instead of directly printing the {IP, Port} tuple. Or maybe [ip]:port to be more IPV6 friendly. Although I'm not sure how IPV6 addresses are represented here.

@seancribbs
Copy link
Contributor

@engelsanchez Agree, inet_parse:ntoa/1 works nicely for that purpose.

@engelsanchez
Copy link
Contributor

Nice, that's perfect. Thanks @seancribbs

@engelsanchez
Copy link
Contributor

Looks good. A bit of manual shows it working and showing the remote host and port on the receiving part. Caveat: I did not try it with SSL.

👍 and merging now so it makes it into pre3

engelsanchez added a commit that referenced this pull request Oct 4, 2013
Fixes #189 -- include socket peer info in lager messages
@engelsanchez engelsanchez merged commit dc63be6 into develop Oct 4, 2013
@engelsanchez engelsanchez deleted the gh189-handoff-sender-info branch October 4, 2013 22:30
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