set the highest (disable) mrcp log priority by default; log priority can be changed from mod_openmrcp.conf.xml->settings->log_level=7 [0-7]

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5636 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Arsen Chaloyan 2007-08-20 19:25:59 +00:00
parent 0c59cb0d51
commit b7fcfd94fa
1 changed files with 3 additions and 0 deletions

View File

@ -761,6 +761,7 @@ static switch_status_t do_config()
return SWITCH_STATUS_TERM; return SWITCH_STATUS_TERM;
} }
mrcp_logger.priority = MRCP_PRIO_EMERGENCY;
if ((settings = switch_xml_child(cfg, "settings"))) { if ((settings = switch_xml_child(cfg, "settings"))) {
for (param = switch_xml_child(settings, "param"); param; param = param->next) { for (param = switch_xml_child(settings, "param"); param; param = param->next) {
const char *var = switch_xml_attr_soft(param, "name"); const char *var = switch_xml_attr_soft(param, "name");
@ -770,6 +771,8 @@ static switch_status_t do_config()
asr_profile_name = val; asr_profile_name = val;
} else if (!strcasecmp(var, "tts_default_profile")) { } else if (!strcasecmp(var, "tts_default_profile")) {
tts_profile_name = val; tts_profile_name = val;
} else if (!strcasecmp(var, "log_level")) {
mrcp_logger.priority = atoi(val);
} }
} }
} }