diff --git a/conda_build/utils.py b/conda_build/utils.py index 8d13c76b95..6461e1c8b0 100644 --- a/conda_build/utils.py +++ b/conda_build/utils.py @@ -1277,7 +1277,7 @@ def expand_globs( glob_files = glob(path, recursive=True) if not glob_files: log = get_logger(__name__) - log.error(f"Glob {path} did not match in root_dir {root_dir}") + log.warning(f"Glob {path} did not match in root_dir {root_dir}") # https://docs.python.org/3/library/glob.html#glob.glob states that # "whether or not the results are sorted depends on the file system". # Avoid this potential ambiguity by sorting. (see #4185) diff --git a/news/5472-demote-non-mathing-glob-to-warning b/news/5472-demote-non-mathing-glob-to-warning new file mode 100644 index 0000000000..17e2a93ff8 --- /dev/null +++ b/news/5472-demote-non-mathing-glob-to-warning @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* + +### Deprecations + +* + +### Docs + +* + +### Other + +* Demoted logging message about glob finding no matches from error to warning (#5472)