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 /res/res_agi.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 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 5d58de4b0..1fef67a59 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -224,8 +224,7 @@ static enum agi_result launch_netscript(char *agiurl, char *argv[], int *fds, in if (!ast_strlen_zero(script)) fdprintf(s, "agi_network_script: %s\n", script); - if (option_debug > 3) - ast_log(LOG_DEBUG, "Wow, connected!\n"); + ast_debug(4, "Wow, connected!\n"); fds[0] = s; fds[1] = s; *opid = -1; @@ -584,8 +583,7 @@ static int handle_streamfile(struct ast_channel *chan, AGI *agi, int argc, char return RESULT_SUCCESS; } vfs = ast_openvstream(chan, argv[2], chan->language); - if (vfs && option_debug) - ast_log(LOG_DEBUG, "Ooh, found a video stream, too\n"); + ast_debug(vfs && 1, "Ooh, found a video stream, too\n"); if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Playing '%s' (escape_digits=%s) (sample_offset %ld)\n", argv[2], edigits, sample_offset); @@ -649,8 +647,7 @@ static int handle_getoption(struct ast_channel *chan, AGI *agi, int argc, char * return RESULT_SUCCESS; } vfs = ast_openvstream(chan, argv[2], chan->language); - if (vfs && option_debug) - ast_log(LOG_DEBUG, "Ooh, found a video stream, too\n"); + ast_debug(vfs && 1, "Ooh, found a video stream, too\n"); if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Playing '%s' (escape_digits=%s) (timeout %d)\n", argv[2], edigits, timeout); @@ -1860,8 +1857,7 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi /* Idle the channel until we get a command */ f = ast_read(c); if (!f) { - if (option_debug) - ast_log(LOG_DEBUG, "%s hungup\n", chan->name); + ast_debug(1, "%s hungup\n", chan->name); returnstatus = AGI_RESULT_HANGUP; break; } else { |