aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_record.c')
-rw-r--r--apps/app_record.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index a51a8a508..924e6ba2d 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -335,7 +335,8 @@ static int record_exec(struct ast_channel *chan, void *data)
ast_frfree(f);
}
if (!f) {
- ast_log(LOG_DEBUG, "Got hangup\n");
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Got hangup\n");
res = -1;
}