]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set the highest (disable) mrcp log priority by default; log priority can be changed...
authorArsen Chaloyan <achaloyan@yahoo.com>
Mon, 20 Aug 2007 19:25:59 +0000 (19:25 +0000)
committerArsen Chaloyan <achaloyan@yahoo.com>
Mon, 20 Aug 2007 19:25:59 +0000 (19:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5636 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c

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