diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-06-14 19:39:12 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-06-14 19:39:12 +0000 |
commit | 055d82cbce5ad588f4d612c49f56cd76f4c8bab6 (patch) | |
tree | 4fd144260e58c9a66d331fc81b46473723452479 /funcs/func_db.c | |
parent | 60b029aa8275ef7da70281b3791a2837ffba7930 (diff) |
Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_db.c')
-rw-r--r-- | funcs/func_db.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/funcs/func_db.c b/funcs/func_db.c index 9f9b9ca5c..49e52bfd0 100644 --- a/funcs/func_db.c +++ b/funcs/func_db.c @@ -69,9 +69,7 @@ static int function_db_read(struct ast_channel *chan, const char *cmd, } if (ast_db_get(args.family, args.key, buf, len - 1)) { - if (option_debug) - ast_log(LOG_DEBUG, "DB: %s/%s not found in database.\n", args.family, - args.key); + ast_debug(1, "DB: %s/%s not found in database.\n", args.family, args.key); } else pbx_builtin_setvar_helper(chan, "DB_RESULT", buf); @@ -185,13 +183,10 @@ static int function_db_delete(struct ast_channel *chan, const char *cmd, } if (ast_db_get(args.family, args.key, buf, len - 1)) { - if (option_debug) - ast_log(LOG_DEBUG, "DB_DELETE: %s/%s not found in database.\n", args.family, args.key); + ast_debug(1, "DB_DELETE: %s/%s not found in database.\n", args.family, args.key); } else { if (ast_db_del(args.family, args.key)) { - if (option_debug) - ast_log(LOG_DEBUG, "DB_DELETE: %s/%s could not be deleted from the database\n", - args.family, args.key); + ast_debug(1, "DB_DELETE: %s/%s could not be deleted from the database\n", args.family, args.key); } } pbx_builtin_setvar_helper(chan, "DB_RESULT", buf); |