diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-11-29 18:43:16 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-11-29 18:43:16 +0000 |
commit | 77b670c4ab62db2fa2386e15aa6ae4860bb401c9 (patch) | |
tree | fba9c5d22c4c3dea695dac6c51a49316f6381b4d /res/res_musiconhold.c | |
parent | d7dec4f14fc018d18ed480358f9a265b81b230b9 (diff) |
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
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r-- | res/res_musiconhold.c | 10 |
1 files changed, 3 insertions, 7 deletions
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; } |