From e80276cd1422ec22bccd7a7625ead43e75525ae8 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 11 Nov 2020 21:02:03 +0100 Subject: spack env deactivate/spack unload: demote warning message to debug message (#19864) --- lib/spack/spack/util/environment.py | 8 ++++---- 1 file 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) -- cgit v1.2.3-70-g09d2