From 77b670c4ab62db2fa2386e15aa6ae4860bb401c9 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 29 Nov 2011 18:43:16 +0000 Subject: Allow each logging destination and console to have its own notion of the verbosity level. Review: https://reviewboard.asterisk.org/r/1599 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346391 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'res/res_musiconhold.c') diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index d5f9e2c6f..ffe051eaa 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -268,9 +268,7 @@ static void moh_files_release(struct ast_channel *chan, void *data) chan->stream = NULL; } - if (option_verbose > 2) { - ast_verbose(VERBOSE_PREFIX_3 "Stopped music on hold on %s\n", chan->name); - } + ast_verb(3, "Stopped music on hold on %s\n", chan->name); ast_format_clear(&state->mohwfmt); /* make sure to clear this format before restoring the original format. */ if (state->origwfmt.id && ast_set_write_format(chan, &state->origwfmt)) { @@ -1154,10 +1152,8 @@ static int init_files_class(struct mohclass *class) } if (!res) { - if (option_verbose > 2) { - ast_verbose(VERBOSE_PREFIX_3 "Files not found in %s for moh class:%s\n", - class->dir, class->name); - } + ast_verb(3, "Files not found in %s for moh class:%s\n", + class->dir, class->name); return -1; } -- cgit v1.2.3