]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't log to debug unless debug is turned on
authorOlle Johansson <oej@edvina.net>
Mon, 22 Feb 2010 13:52:34 +0000 (13:52 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 22 Feb 2010 13:52:34 +0000 (13:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@248268 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index f05c4ef3aa2ebb23aec1d7933d54ef38006e3721..39b3a57f8d7f952b03598c0e280a2f3bb457ee52 100644 (file)
@@ -1847,7 +1847,9 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                close(fd);
                goto outrun;
        }
-       ast_log(LOG_DEBUG, "Placed channel %s in %s conf %d\n", chan->name, dahdi_chan_name, conf->zapconf);
+       if (option_debug) {
+               ast_log(LOG_DEBUG, "Placed channel %s in %s conf %d\n", chan->name, dahdi_chan_name, conf->zapconf);
+       }
 
        if (!sent_event) {
                manager_event(EVENT_FLAG_CALL, "MeetmeJoin",