From b81e4d6c977851d5f08ea04bcf8266cd1ccda62c Mon Sep 17 00:00:00 2001 From: Anthony Minessale <anthony.minessale@gmail.com> Date: Wed, 26 Apr 2006 18:37:53 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1263 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/loggers/mod_console/mod_console.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mod/loggers/mod_console/mod_console.c b/src/mod/loggers/mod_console/mod_console.c index ee9a3fe08b..a4229c0f9a 100644 --- a/src/mod/loggers/mod_console/mod_console.c +++ b/src/mod/loggers/mod_console/mod_console.c @@ -107,8 +107,8 @@ static switch_status switch_console_logger(const switch_log_node *node, switch_l 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); @@ -126,6 +126,9 @@ static switch_status switch_console_logger(const switch_log_node *node, switch_l 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;