mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Fix properly the issue of the verbose level for parsing... (bug #3404 etc)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
config.c
4
config.c
@@ -459,14 +459,14 @@ static struct ast_config *config_text_file_load(const char *database, const char
|
|||||||
for (i=0; i<globbuf.gl_pathc; i++) {
|
for (i=0; i<globbuf.gl_pathc; i++) {
|
||||||
strncpy(fn, globbuf.gl_pathv[i], sizeof(fn)-1);
|
strncpy(fn, globbuf.gl_pathv[i], sizeof(fn)-1);
|
||||||
#endif
|
#endif
|
||||||
if ((option_verbose > 2) && !option_debug) {
|
if ((option_verbose > 1) && !option_debug) {
|
||||||
ast_verbose( VERBOSE_PREFIX_2 "Parsing '%s': ", fn);
|
ast_verbose( VERBOSE_PREFIX_2 "Parsing '%s': ", fn);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
if ((f = fopen(fn, "r"))) {
|
if ((f = fopen(fn, "r"))) {
|
||||||
if (option_debug)
|
if (option_debug)
|
||||||
ast_log(LOG_DEBUG, "Parsing %s\n", fn);
|
ast_log(LOG_DEBUG, "Parsing %s\n", fn);
|
||||||
else if (option_verbose > 2)
|
else if (option_verbose > 1)
|
||||||
ast_verbose("Found\n");
|
ast_verbose("Found\n");
|
||||||
while(!feof(f)) {
|
while(!feof(f)) {
|
||||||
lineno++;
|
lineno++;
|
||||||
|
Reference in New Issue
Block a user