提交 5de6f301 authored 作者: Michael Jerris's avatar Michael Jerris

silence app verifier assertion

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9937 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5581980a
......@@ -234,8 +234,10 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
if (COLORIZE) {
#ifdef WIN32
DWORD len = (DWORD) strlen(node->data);
DWORD outbytes = 0;
SetConsoleTextAttribute(hStdout, COLORS[node->level]);
WriteFile(hStdout, node->data, (DWORD) strlen(node->data), NULL, NULL);
WriteFile(hStdout, node->data, len, &outbytes, NULL);
SetConsoleTextAttribute(hStdout, wOldColorAttrs);
#else
fprintf(handle, "%s%s%s", COLORS[node->level], node->data, SWITCH_SEQ_DEFAULT_COLOR);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论