mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-27 20:59:50 +00:00
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
This commit is contained in:
parent
18ca278d9b
commit
533c46874e
@ -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
|
|||||||
|
|
||||||
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
|
|||||||
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
|
|||||||
|
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user