spack env deactivate/spack unload: demote warning message to debug message (#19864)

This commit is contained in:
Massimiliano Culpo 2020-11-11 21:02:03 +01:00 committed by GitHub
parent 2929f59c03
commit e80276cd14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -508,16 +508,16 @@ def reversed(self):
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)