spack env deactivate/spack unload: demote warning message to debug message (#19864)
This commit is contained in:
parent
2929f59c03
commit
e80276cd14
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue