提交 1a00a74d authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

worker/src/RTC/PortManager.cpp: fix wrong warn log

上级 371d3df8
...@@ -197,6 +197,8 @@ namespace RTC ...@@ -197,6 +197,8 @@ namespace RTC
reinterpret_cast<const struct sockaddr*>(&bindAddr), reinterpret_cast<const struct sockaddr*>(&bindAddr),
flags); flags);
if (err)
{
MS_WARN_DEV( MS_WARN_DEV(
"uv_udp_bind() failed [transport:%s, ip:'%s', port:%" PRIu16 ", attempt:%zu/%zu]: %s", "uv_udp_bind() failed [transport:%s, ip:'%s', port:%" PRIu16 ", attempt:%zu/%zu]: %s",
transportStr.c_str(), transportStr.c_str(),
...@@ -205,6 +207,7 @@ namespace RTC ...@@ -205,6 +207,7 @@ namespace RTC
attempt, attempt,
numAttempts, numAttempts,
uv_strerror(err)); uv_strerror(err));
}
break; break;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论