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:
parent
dad010329b
commit
976bdba2d1
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++) {
|
||||
strncpy(fn, globbuf.gl_pathv[i], sizeof(fn)-1);
|
||||
#endif
|
||||
if ((option_verbose > 2) && !option_debug) {
|
||||
if ((option_verbose > 1) && !option_debug) {
|
||||
ast_verbose( VERBOSE_PREFIX_2 "Parsing '%s': ", fn);
|
||||
fflush(stdout);
|
||||
}
|
||||
if ((f = fopen(fn, "r"))) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Parsing %s\n", fn);
|
||||
else if (option_verbose > 2)
|
||||
else if (option_verbose > 1)
|
||||
ast_verbose("Found\n");
|
||||
while(!feof(f)) {
|
||||
lineno++;
|
||||
|
|
Loading…
Reference in New Issue