[Asterisk-code-review] res sorcery memory cache: Change a warning to an error. (asterisk[13])
George Joseph
asteriskteam at digium.com
Tue Dec 13 14:09:30 CST 2016
George Joseph has uploaded a new change for review. ( https://gerrit.asterisk.org/4616 )
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/16/4616/1
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c
index 4ce4e18..7da72bc 100644
--- a/res/res_sorcery_memory_cache.c
+++ b/res/res_sorcery_memory_cache.c
@@ -1555,7 +1555,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/4616
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf3a67038c16e3da814cf612ff4d6d18ad29ecd7
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: George Joseph <gjoseph at digium.com>
More information about the asterisk-code-review
mailing list