Skip to content
Snippets Groups Projects
Commit f9c910f7 authored by Yuchen Zeng's avatar Yuchen Zeng Committed by GitHub
Browse files

Merge pull request #10207 from y-zeng/tcp_server_severity

Downgrade error severity to INFO when failing to add a listener
parents 40a947ef cb2f3f6b
No related branches found
No related tags found
No related merge requests found
......@@ -350,8 +350,20 @@ static grpc_error *add_wildcard_addrs_to_server(grpc_tcp_server *s,
}
}
if (*out_port > 0) {
GRPC_LOG_IF_ERROR("Failed to add :: listener", v6_err);
GRPC_LOG_IF_ERROR("Failed to add 0.0.0.0 listener", v4_err);
if (v6_err != GRPC_ERROR_NONE) {
gpr_log(GPR_INFO,
"Failed to add :: listener, "
"the environment may not support IPv6: %s",
grpc_error_string(v6_err));
GRPC_ERROR_UNREF(v6_err);
}
if (v4_err != GRPC_ERROR_NONE) {
gpr_log(GPR_INFO,
"Failed to add 0.0.0.0 listener, "
"the environment may not support IPv4: %s",
grpc_error_string(v4_err));
GRPC_ERROR_UNREF(v4_err);
}
return GRPC_ERROR_NONE;
} else {
grpc_error *root_err =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment