summaryrefslogtreecommitdiff
path: root/channels/chan_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r--channels/chan_local.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 1fd7f2fae..47b862b37 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -142,8 +142,7 @@ static int local_devicestate(void *data)
if ((opts = strchr(context, '/')))
*opts = '\0';
- if (option_debug > 2)
- ast_log(LOG_DEBUG, "Checking if extension %s@%s exists (devicestate)\n", exten, context);
+ ast_debug(3, "Checking if extension %s@%s exists (devicestate)\n", exten, context);
res = ast_exists_extension(NULL, context, exten, 1, NULL);
if (!res)
@@ -303,8 +302,7 @@ static int local_write(struct ast_channel *ast, struct ast_frame *f)
if (!ast_test_flag(p, LOCAL_ALREADY_MASQED))
res = local_queue_frame(p, isoutbound, f, ast);
else {
- if (option_debug)
- ast_log(LOG_DEBUG, "Not posting to queue since already masked on '%s'\n", ast->name);
+ ast_debug(1, "Not posting to queue since already masked on '%s'\n", ast->name);
res = 0;
}
if (!res)