CPATH warning: downgrade to debug message (#10675)

Spack warns users when a dependency package updates CPATH. This
warning message is generating bug reports and alarm in cases where
there is no problem. For now this downgrades the warning message to
the debug level, so it only shows up if something goes wrong for the
user and they ask for more information from Spack.
This commit is contained in:
Peter Scheibel 2019-02-21 17:26:38 -06:00 committed by GitHub
parent 4f5be841d4
commit 98f1c9a291
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -691,7 +691,7 @@ def setup_package(pkg, dirty):
dpkg.setup_dependent_environment(spack_env, run_env, spec)
if (not dirty) and (not spack_env.is_unset('CPATH')):
tty.warn("A dependency has updated CPATH, this may lead pkg-config"
tty.debug("A dependency has updated CPATH, this may lead pkg-config"
" to assume that the package is part of the system"
" includes and omit it when invoked with '--cflags'.")