mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +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:
@@ -2787,9 +2787,7 @@ int ast_config_text_file_save2(const char *configfile, const struct ast_config *
|
||||
}
|
||||
cat = cat->next;
|
||||
}
|
||||
if (!option_debug) {
|
||||
ast_verb(2, "Saving '%s': saved\n", fn);
|
||||
}
|
||||
ast_verb(2, "Saving '%s': saved\n", fn);
|
||||
} else {
|
||||
ast_debug(1, "Unable to open for writing: %s\n", fn);
|
||||
ast_verb(2, "Unable to write '%s' (%s)\n", fn, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user