提交 647bfb98 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Do not use MS_WARN_DEV() in handles/UnixStreamSocket.cpp but MS_ERROR_STD()

上级 4b8c360e
...@@ -163,6 +163,8 @@ void UnixStreamSocket::Close() ...@@ -163,6 +163,8 @@ void UnixStreamSocket::Close()
void UnixStreamSocket::Write(const uint8_t* data, size_t len) void UnixStreamSocket::Write(const uint8_t* data, size_t len)
{ {
MS_TRACE_STD();
if (this->closed) if (this->closed)
return; return;
...@@ -189,7 +191,7 @@ void UnixStreamSocket::Write(const uint8_t* data, size_t len) ...@@ -189,7 +191,7 @@ void UnixStreamSocket::Write(const uint8_t* data, size_t len)
// Any other error. // Any other error.
else if (written < 0) else if (written < 0)
{ {
MS_WARN_DEV("uv_try_write() failed, trying uv_write(): %s", uv_strerror(written)); MS_ERROR_STD("uv_try_write() failed, trying uv_write(): %s", uv_strerror(written));
// Set written to 0 so pendingLen can be properly calculated. // Set written to 0 so pendingLen can be properly calculated.
written = 0; written = 0;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论