summaryrefslogtreecommitdiff
path: root/res/res_sorcery_memory_cache.c
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2016-12-13 13:06:34 -0700
committerGeorge Joseph <gjoseph@digium.com>2016-12-14 08:26:37 -0600
commit91485734a48e9e44292b80b8993fb464bc3817b0 (patch)
treec64c7f3093d3e87909ba12b5d42bd52691d9f08f /res/res_sorcery_memory_cache.c
parentcd46e86491e3f8946bbe9c97b8a1d7eaf708dda9 (diff)
res_sorcery_memory_cache: Change an error to a debug message
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 an ERROR. Since this can happen frequently and validly when an inbound registration expires after the cache entry expired, the errors are unnecessary and misleading. Changed to a debug/1. Change-Id: Idf3a67038c16e3da814cf612ff4d6d18ad29ecd7
Diffstat (limited to 'res/res_sorcery_memory_cache.c')
-rw-r--r--res/res_sorcery_memory_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c
index 4ce4e18e9..7da72bca4 100644
--- a/res/res_sorcery_memory_cache.c
+++ b/res/res_sorcery_memory_cache.c
@@ -1555,7 +1555,7 @@ static int sorcery_memory_cache_delete(const struct ast_sorcery *sorcery, void *
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;