git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1263
d0543943-73ff-0310-b7d9-
9358b9ac24b2
if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) {
uint8_t *lookup = NULL;
- switch_log_level level = SWITCH_LOG_DEBUG;
-
+ switch_log_level level = SWITCH_LOG_DEBUG;
+
if (log_hash) {
lookup = switch_core_hash_find(log_hash, node->file);
if (!log_hash || (((all_level > - 1) || lookup) && level >= node->level)) {
fprintf(handle, node->data);
}
+ } else {
+ fprintf(stderr, "HELP I HAVE NO CONSOLE TO LOG TO!\n");
+ fflush(stderr);
}
return SWITCH_STATUS_SUCCESS;