Skip to content

Commit

Permalink
cleanup: Make TCP connection failures a warning instead of error.
Browse files Browse the repository at this point in the history
It's not really bad, unless all connections fail. This is currently
erroring on FreeBSD tests, making them fail needlessly.
  • Loading branch information
iphydf committed Dec 27, 2023
1 parent b7f9367 commit 0a6673f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toxcore/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -1748,8 +1748,8 @@ bool net_connect(const Memory *mem, const Logger *log, Socket sock, const IP_Por
// Non-blocking socket: "Operation in progress" means it's connecting.
if (!should_ignore_connect_error(error)) {
char *net_strerror = net_new_strerror(error);
LOGGER_ERROR(log, "failed to connect to %s:%d: %d (%s)",
net_ip_ntoa(&ip_port->ip, &ip_str), net_ntohs(ip_port->port), error, net_strerror);
LOGGER_WARNING(log, "failed to connect to %s:%d: %d (%s)",
net_ip_ntoa(&ip_port->ip, &ip_str), net_ntohs(ip_port->port), error, net_strerror);
net_kill_strerror(net_strerror);
return false;
}
Expand Down

0 comments on commit 0a6673f

Please sign in to comment.