[Asterisk-code-review] res sorcery memory cache: Change a warning to an error. (asterisk[14])

George Joseph asteriskteam at digium.com
Tue Dec 13 14:11:32 CST 2016


George Joseph has uploaded a new change for review. ( https://gerrit.asterisk.org/4617 )

Change subject: res_sorcery_memory_cache:  Change a warning to an error.
......................................................................

res_sorcery_memory_cache:  Change a warning to an error.

When a sorcery user calls ast_sorcery_delete on an object that
may have already expired from the cache, res_sorcery_memory_cache
spits out a WARNING.  Since this can happen frequently and validly when
an inbound registration expires after the cache entry expired, the
warnings are unnecessary and misleading.  Changed to a debug/1.

Change-Id: Idf3a67038c16e3da814cf612ff4d6d18ad29ecd7
---
M res/res_sorcery_memory_cache.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/17/4617/1

diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c
index f1fb3c3..9f61aee 100644
--- a/res/res_sorcery_memory_cache.c
+++ b/res/res_sorcery_memory_cache.c
@@ -1557,7 +1557,7 @@
 	ao2_unlock(cache->objects);
 
 	if (res) {
-		ast_log(LOG_ERROR, "Unable to delete object '%s' from sorcery cache\n", ast_sorcery_object_get_id(object));
+		ast_debug(1, "Unable to delete object '%s' from sorcery cache\n", ast_sorcery_object_get_id(object));
 	}
 
 	return res;

-- 
To view, visit https://gerrit.asterisk.org/4617
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf3a67038c16e3da814cf612ff4d6d18ad29ecd7
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: George Joseph <gjoseph at digium.com>



More information about the asterisk-code-review mailing list