From: Nathan Neulinger Date: Thu, 11 Jul 2013 17:23:04 +0000 (-0500) Subject: FS-5567 --resolve add a non-error level informational log message when no files match... X-Git-Tag: v1.5.3~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79d23ec0da582884c502e9859f218733c060c4a7;p=thirdparty%2Ffreeswitch.git FS-5567 --resolve add a non-error level informational log message when no files match pattern --- diff --git a/src/switch_xml.c b/src/switch_xml.c index 076244939f..ed92e05b63 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -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; }