summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-11-11 21:02:03 +0100
committerGitHub <noreply@github.com>2020-11-11 12:02:03 -0800
commite80276cd1422ec22bccd7a7625ead43e75525ae8 (patch)
tree30917254cc2847beae9a1d4a7d4b014c1f57bb74 /lib
parent2929f59c03002d813a247a5765ce9ee742195900 (diff)
downloadspack-e80276cd1422ec22bccd7a7625ead43e75525ae8.tar.gz
spack-e80276cd1422ec22bccd7a7625ead43e75525ae8.tar.bz2
spack-e80276cd1422ec22bccd7a7625ead43e75525ae8.tar.xz
spack-e80276cd1422ec22bccd7a7625ead43e75525ae8.zip
spack env deactivate/spack unload: demote warning message to debug message (#19864)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/environment.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/util/environment.py b/lib/spack/spack/util/environment.py
index 7e6d34e64d..b370053c3c 100644
--- a/lib/spack/spack/util/environment.py
+++ b/lib/spack/spack/util/environment.py
@@ -508,16 +508,16 @@ class EnvironmentModifications(object):
for envmod in reversed(self.env_modifications):
if type(envmod) == SetEnv:
- tty.warn("Reversing `Set` environment operation may lose "
- "original value")
+ tty.debug("Reversing `Set` environment operation may lose "
+ "original value")
rev.unset(envmod.name)
elif type(envmod) == AppendPath:
rev.remove_path(envmod.name, envmod.value)
elif type(envmod) == PrependPath:
rev.remove_path(envmod.name, envmod.value)
elif type(envmod) == SetPath:
- tty.warn("Reversing `SetPath` environment operation may lose "
- "original value")
+ tty.debug("Reversing `SetPath` environment operation may lose "
+ "original value")
rev.unset(envmod.name)
elif type(envmod) == AppendFlagsEnv:
rev.remove_flags(envmod.name, envmod.value)