-
Notifications
You must be signed in to change notification settings - Fork 25
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
Log reason for reconnect and underlying connection protocol #125
Conversation
|
||
r = connect(m->socket, &m->address.sockaddr.sa, salen); | ||
if (r < 0 && errno != EINPROGRESS) | ||
return log_error_errno(errno, "Failed to connect to remote server='%s': %m", pretty); | ||
return log_error_errno(errno, "Failed to connect to remote server='%s/%s': %m", pretty, protocol); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protocol_to_string
should be suffice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, thanks for the pointer; changed.
src/netlog/netlog-network.c
Outdated
@@ -167,16 +171,27 @@ int manager_network_connect_socket(Manager *m) { | |||
if (r < 0) | |||
return r; | |||
|
|||
log_debug("Connecting to remote server: '%s'", pretty); | |||
switch (m->protocol) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already doing it via protocol_to_string
no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dito
Thank you |
No description provided.