提交 e39aa9bd authored 作者: Michael Jerris's avatar Michael Jerris

fix windows build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7367 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 7f8beb37
......@@ -190,11 +190,15 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
int aok = can_write(handle, 5);
if (aok) {
const char *msg = "Failed to write to the console! Logging disabled! RE-enable with the 'console loglevel' command\n";
#ifdef WIN32
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg);
#else
if (COLORIZE) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s%s", COLORS[1], msg, SWITCH_SEQ_DEFAULT_COLOR);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg);
}
#endif
failed_write = 0;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论