From 21af72d3ead772fd611358ba2eb10c58d074445e Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Thu, 16 Jul 2009 17:57:56 +0000 Subject: [PATCH] mod_limit: Move over-limit messages down to INFO (MODAPP-308) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14275 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_limit/mod_limit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index 9432894cbd..b517beb5a1 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -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 {