[asterisk-commits] res/res sorcery astdb: Add a debugging message for when retr... (asterisk[13])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 14 20:48:11 CDT 2015


Matt Jordan has submitted this change and it was merged.

Change subject: res/res_sorcery_astdb: Add a debugging message for when retrieval by ID fails
......................................................................


res/res_sorcery_astdb: Add a debugging message for when retrieval by ID fails

Having a debug message tell us that we attempted to look up an item but
failed is nice in circumstances when it isn't clear if the wizard was
queried correctly or not.

Change-Id: I2600c3bbea87f252196358f62e73f4c7da8632f7
---
M res/res_sorcery_astdb.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Anonymous Coward #1000019: Verified
  Matt Jordan: Looks good to me, approved



diff --git a/res/res_sorcery_astdb.c b/res/res_sorcery_astdb.c
index e282d8b..45a5494 100644
--- a/res/res_sorcery_astdb.c
+++ b/res/res_sorcery_astdb.c
@@ -202,6 +202,7 @@
 	if (ast_db_get_allocated(family, id, &value) || !(json = ast_json_load_string(value, &error)) ||
 		!(objset = sorcery_json_to_objectset(json)) || !(object = ast_sorcery_alloc(sorcery, type, id)) ||
 		ast_sorcery_objectset_apply(sorcery, object, objset)) {
+		ast_debug(3, "Failed to retrieve object '%s' from astdb\n", id);
 		ao2_cleanup(object);
 		return NULL;
 	}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2600c3bbea87f252196358f62e73f4c7da8632f7
Gerrit-PatchSet: 3
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-commits mailing list