提交 533c4687 authored 作者: Michael Jerris's avatar Michael Jerris

fix build, remove nag message to stderr when in -nc

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6536 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 18ca278d
...@@ -74,7 +74,7 @@ static void add_mapping(char *var, char *val, int cumlative) ...@@ -74,7 +74,7 @@ static void add_mapping(char *var, char *val, int cumlative)
if (cumlative) { if (cumlative) {
uint32_t l = switch_log_str2level(val); uint32_t l = switch_log_str2level(val);
int i; uint32_t i;
assert(l < 10); assert(l < 10);
...@@ -161,7 +161,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit ...@@ -161,7 +161,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) { if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) {
size_t mask = 0; size_t mask = 0;
int ok = 0; size_t ok = 0;
ok = switch_log_check_mask(all_level, level); ok = switch_log_check_mask(all_level, level);
...@@ -190,9 +190,6 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit ...@@ -190,9 +190,6 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
fprintf(handle, "%s", node->data); fprintf(handle, "%s", node->data);
} }
} }
} else {
fprintf(stderr, "HELP I HAVE NO CONSOLE TO LOG TO!\n");
fflush(stderr);
} }
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
......
...@@ -214,7 +214,7 @@ static switch_status_t process_node(const switch_log_node_t *node, switch_log_le ...@@ -214,7 +214,7 @@ static switch_status_t process_node(const switch_log_node_t *node, switch_log_le
for (hi = switch_hash_first(NULL, profile_hash); hi; hi = switch_hash_next(hi)) { for (hi = switch_hash_first(NULL, profile_hash); hi; hi = switch_hash_next(hi)) {
size_t mask = 0; size_t mask = 0;
int ok = 0; size_t ok = 0;
switch_hash_this(hi, &var, NULL, &val); switch_hash_this(hi, &var, NULL, &val);
profile = val; profile = val;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论