mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
bug #8076 check option_debug before printing to debug channel.
patch provided in bugnote, with minor changes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -209,7 +209,8 @@ static void swap_subs(struct feature_pvt *p, int a, int b)
|
||||
int tinthreeway;
|
||||
struct ast_channel *towner;
|
||||
|
||||
ast_log(LOG_DEBUG, "Swapping %d and %d\n", a, b);
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Swapping %d and %d\n", a, b);
|
||||
|
||||
towner = p->subs[a].owner;
|
||||
tinthreeway = p->subs[a].inthreeway;
|
||||
|
||||
Reference in New Issue
Block a user