aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_zapbarge.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapbarge.c')
-rw-r--r--apps/app_zapbarge.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/app_zapbarge.c b/apps/app_zapbarge.c
index 735020f60..bd0637edf 100644
--- a/apps/app_zapbarge.c
+++ b/apps/app_zapbarge.c
@@ -172,7 +172,8 @@ zapretry:
if (ztc.confmode) {
/* Whoa, already in a conference... Retry... */
if (!retryzap) {
- ast_log(LOG_DEBUG, "Zap channel is in a conference already, retrying with pseudo\n");
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Zap channel is in a conference already, retrying with pseudo\n");
retryzap = 1;
goto zapretry;
}
@@ -188,7 +189,8 @@ zapretry:
close(fd);
goto outrun;
}
- ast_log(LOG_DEBUG, "Placed channel %s in ZAP channel %d monitor\n", chan->name, confno);
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Placed channel %s in ZAP channel %d monitor\n", chan->name, confno);
for(;;) {
outfd = -1;
@@ -200,7 +202,8 @@ zapretry:
/* Kill old pseudo */
close(fd);
}
- ast_log(LOG_DEBUG, "Ooh, something swapped out under us, starting over\n");
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Ooh, something swapped out under us, starting over\n");
retryzap = 0;
goto zapretry;
}