]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_limit: Move over-limit messages down to INFO (MODAPP-308)
authorMathieu Rene <mrene@avgs.ca>
Thu, 16 Jul 2009 17:57:56 +0000 (17:57 +0000)
committerMathieu Rene <mrene@avgs.ca>
Thu, 16 Jul 2009 17:57:56 +0000 (17:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14275 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_limit/mod_limit.c

index 9432894cbd967f27a935d605281056403eaf6afc..b517beb5a14e0421754a6b405a0c15b5ec873ddb 100644 (file)
@@ -953,7 +953,7 @@ SWITCH_STANDARD_APP(limit_hash_function)
                        item->rate_usage++;
                        
                        if ((max >= 0) && (item->rate_usage > (uint32_t)max)) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Usage for %s exceeds maximum rate of %d/%ds, now at %d\n", hashkey, max, interval, item->rate_usage);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Usage for %s exceeds maximum rate of %d/%ds, now at %d\n", hashkey, max, interval, item->rate_usage);
                                if (*xfer_exten == '!') {
                                        switch_channel_hangup(channel, switch_channel_str2cause(xfer_exten+1));
                                } else {
@@ -963,7 +963,7 @@ SWITCH_STANDARD_APP(limit_hash_function)
                        }
                }
        } else if ((max >= 0) && (item->total_usage + increment > (uint32_t)max)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Usage for %s is already at max value (%d)\n", hashkey, item->total_usage);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Usage for %s is already at max value (%d)\n", hashkey, item->total_usage);
                if (*xfer_exten == '!') {
                        switch_channel_hangup(channel, switch_channel_str2cause(xfer_exten+1));
                } else {