fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7367 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7f8beb3748
commit
e39aa9bd05
|
@ -190,11 +190,15 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
|
||||||
int aok = can_write(handle, 5);
|
int aok = can_write(handle, 5);
|
||||||
if (aok) {
|
if (aok) {
|
||||||
const char *msg = "Failed to write to the console! Logging disabled! RE-enable with the 'console loglevel' command\n";
|
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) {
|
if (COLORIZE) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s%s", COLORS[1], msg, SWITCH_SEQ_DEFAULT_COLOR);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s%s", COLORS[1], msg, SWITCH_SEQ_DEFAULT_COLOR);
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
failed_write = 0;
|
failed_write = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue