mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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
This commit is contained in:
10
main/pbx.c
10
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) {
|
||||
|
Reference in New Issue
Block a user