提交 100017e7 authored 作者: Tamas Cseke's avatar Tamas Cseke

FS-3719 --resolve

上级 db8a43ad
......@@ -663,6 +663,9 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
wrote = write(fd, json_text, (unsigned) strlen(json_text));
close(fd);
fd = -1;
if(wrote < 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing [%s]\n",path);
}
} else {
char ebuf[512] = { 0 };
#ifdef WIN32
......@@ -816,6 +819,9 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
wrote = write(fd, json_text, (unsigned) strlen(json_text));
close(fd);
fd = -1;
if(wrote < 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing [%s]\n",path);
}
break;
} else {
char ebuf[512] = { 0 };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论