mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Replace direct checks of option_debug with DEBUG_ATLEAST macro.
Checking option_debug directly is incorrect as it ignores file/module specific debug settings. This system-wide change replaces nearly all direct checks for option_debug with the DEBUG_ATLEAST macro. Change-Id: Ic342d4799a945dbc40ac085ac142681094a4ebf0
This commit is contained in:
@@ -1438,7 +1438,7 @@ static int sendmail(struct minivm_template *template, struct minivm_account *vmu
|
||||
ast_debug(1, "Using default subject for this email \n");
|
||||
}
|
||||
|
||||
if (option_debug > 2)
|
||||
if (DEBUG_ATLEAST(3))
|
||||
fprintf(p, "X-Asterisk-debug: template %s user account %s@%s\n", template->name, vmu->username, vmu->domain);
|
||||
fprintf(p, "MIME-Version: 1.0\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user