summaryrefslogtreecommitdiff
path: root/res/res_monitor.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-06-14 19:39:12 +0000
committerRussell Bryant <russell@russellbryant.com>2007-06-14 19:39:12 +0000
commit055d82cbce5ad588f4d612c49f56cd76f4c8bab6 (patch)
tree4fd144260e58c9a66d331fc81b46473723452479 /res/res_monitor.c
parent60b029aa8275ef7da70281b3791a2837ffba7930 (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_monitor.c')
-rw-r--r--res/res_monitor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c
index 5bff1b1ff..d23c6f727 100644
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -222,9 +222,7 @@ int ast_monitor_start( struct ast_channel *chan, const char *format_spec,
/* so we know this call has been monitored in case we need to bill for it or something */
pbx_builtin_setvar_helper(chan, "__MONITORED","true");
} else {
- if (option_debug)
- ast_log(LOG_DEBUG,"Cannot start monitoring %s, already monitored\n",
- chan->name);
+ ast_debug(1,"Cannot start monitoring %s, already monitored\n", chan->name);
res = -1;
}
@@ -315,8 +313,7 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock)
snprintf(tmp2,sizeof(tmp2), "( %s& rm -f \"%s/%s-\"* ) &",tmp, dir ,name); /* remove legs when done mixing */
ast_copy_string(tmp, tmp2, sizeof(tmp));
}
- if (option_debug)
- ast_log(LOG_DEBUG,"monitor executing %s\n",tmp);
+ ast_debug(1,"monitor executing %s\n",tmp);
if (ast_safe_system(tmp) == -1)
ast_log(LOG_WARNING, "Execute of %s failed.\n",tmp);
}