提交 b2ba4eb2 authored 作者: Brian West's avatar Brian West

tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7705 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e1786743
...@@ -171,7 +171,7 @@ static int can_write(FILE *handle, int ms) ...@@ -171,7 +171,7 @@ static int can_write(FILE *handle, int ms)
} else { } else {
aok = 0; aok = 0;
} }
return aok; return aok;
#else #else
return 1; return 1;
...@@ -189,7 +189,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit ...@@ -189,7 +189,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
if (failed_write) { if (failed_write) {
if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) { if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) {
int aok = can_write(handle, 5); int aok = can_write(handle, 100);
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 #ifdef WIN32
...@@ -230,7 +230,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit ...@@ -230,7 +230,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
if (ok) { if (ok) {
#ifndef WIN32 #ifndef WIN32
int aok = can_write(handle, 2000); int aok = can_write(handle, 10000);
if (!aok) { if (!aok) {
hard_log_level = 0; hard_log_level = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论