]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5567 --resolve add a non-error level informational log message when no files match...
authorNathan Neulinger <nneul@neulinger.org>
Thu, 11 Jul 2013 17:23:04 +0000 (12:23 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Thu, 11 Jul 2013 17:23:04 +0000 (12:23 -0500)
src/switch_xml.c

index 076244939f7861dd12e8dcaed63bc924c924e026..ed92e05b63f51a9017554b9844cb15b50202f55c 100644 (file)
@@ -1345,6 +1345,8 @@ static FILE *preprocess_glob(const char *cwd, const char *pattern, FILE *write_f
        if ( globres != 0) {
                if ( !ignore_nomatch || globres != GLOB_NOMATCH ) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error including %s\n", pattern);
+               } else if ( ignore_nomatch && globres == GLOB_NOMATCH ) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Include pattern %s did not match any files.\n", pattern);
                }
                goto end;
        }