diff options
author | Jason Parker <jparker@digium.com> | 2007-01-18 22:56:35 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2007-01-18 22:56:35 +0000 |
commit | 5d2526540387c8d246ab3a2cc20f293d0195ccc8 (patch) | |
tree | 6f74c9100e614aa9c5adf2780df6761dc3e6a459 /main/pbx.c | |
parent | fa16f36aae6b1fa49fae53824dc5b0b1bc8a2299 (diff) |
Merged revisions 51265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r51265 | qwell | 2007-01-18 16:50:23 -0600 (Thu, 18 Jan 2007) | 4 lines
Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls.
Issue 8832, patch(es) by tgrman
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/pbx.c b/main/pbx.c index 1f656adea..62de9e501 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4750,11 +4750,13 @@ int ast_add_extension2(struct ast_context *con, } if (option_debug) { if (tmp->matchcid) { - ast_log(LOG_DEBUG, "Added extension '%s' priority %d (CID match '%s') to %s\n", - tmp->exten, tmp->priority, tmp->cidmatch, con->name); + if (option_debug) + ast_log(LOG_DEBUG, "Added extension '%s' priority %d (CID match '%s') to %s\n", + tmp->exten, tmp->priority, tmp->cidmatch, con->name); } else { - ast_log(LOG_DEBUG, "Added extension '%s' priority %d to %s\n", - tmp->exten, tmp->priority, con->name); + if (option_debug) + ast_log(LOG_DEBUG, "Added extension '%s' priority %d to %s\n", + tmp->exten, tmp->priority, con->name); } } if (option_verbose > 2) { |