Skip to content

Commit

Permalink
Add more logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakio815 committed Dec 20, 2024
1 parent 5a26cf5 commit 7eb4d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/federated/federate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ void lf_connect_to_federate(uint16_t remote_federate_id) {
remote_federate_id, ADDRESS_QUERY_RETRY_INTERVAL);
continue;
} else {
lf_print("Connected to federate %d, port %d.", remote_federate_id, port);
lf_print("Connected to federate %d, port %hu.", remote_federate_id, uport);
// Trace the event when tracing is enabled
tracepoint_federate_to_federate(receive_ACK, _lf_my_fed_id, remote_federate_id, NULL);
break;
Expand Down
4 changes: 2 additions & 2 deletions core/federated/network/socket_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ int connect_to_socket(int sock, const char* hostname, int port) {
used_port = DEFAULT_PORT;
}
}
lf_print_warning("Could not connect. Will try again every " PRINTF_TIME " nanoseconds.\n",
CONNECT_RETRY_INTERVAL);
lf_print_warning("Could not connect. Will try again every " PRINTF_TIME " nanoseconds. Connecting to port %d.\n",
CONNECT_RETRY_INTERVAL, used_port);
continue;
} else {
break;
Expand Down

0 comments on commit 7eb4d55

Please sign in to comment.