silence app verifier assertion
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9937 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5581980a58
commit
5de6f3012e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue