Skip to content

Commit 4b8137a

Browse files
committed
revisit log messages in ModulesTool.exist w.r.t. debug/info
1 parent def5d3f commit 4b8137a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

easybuild/tools/modules.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def mod_exists_via_show(mod_name):
547547
548548
:param mod_name: module name
549549
"""
550-
self.log.info("Checking whether %s exists based on output of 'module show'", mod_name)
550+
self.log.debug("Checking whether %s exists based on output of 'module show'", mod_name)
551551
stderr = self.show(mod_name)
552552
res = False
553553
# Parse the output:
@@ -609,13 +609,13 @@ def mod_exists_via_show(mod_name):
609609
# module name may be partial, so also check via 'module show' as fallback
610610
if mod_exists:
611611
self.log.info("Module %s exists (found in list of available modules)", mod_name)
612-
elif not mod_exists and maybe_partial:
612+
elif maybe_partial:
613613
self.log.info("Module %s not found in list of available modules, checking via 'module show'...",
614614
mod_name)
615615
mod_exists = mod_exists_via_show(mod_name)
616616
else:
617617
# hidden modules are not visible in 'avail', need to use 'show' instead
618-
self.log.debug("checking whether hidden module %s exists via 'show'..." % mod_name)
618+
self.log.info("Checking whether hidden module %s exists via 'show'..." % mod_name)
619619
mod_exists = mod_exists_via_show(mod_name)
620620

621621
# if no module file was found, check whether specified module name can be a 'wrapper' module...
@@ -624,14 +624,14 @@ def mod_exists_via_show(mod_name):
624624
# Lmod will report module wrappers as non-existent when full module name is used,
625625
# see https://github.com/TACC/Lmod/issues/446
626626
if not mod_exists:
627-
self.log.debug("Module %s not found via module avail/show, checking whether it is a wrapper", mod_name)
627+
self.log.info("Module %s not found via module avail/show, checking whether it is a wrapper", mod_name)
628628
wrapped_mod = self.module_wrapper_exists(mod_name)
629629
if wrapped_mod is not None:
630630
# module wrapper only really exists if the wrapped module file is also available
631631
mod_exists = wrapped_mod in avail_mod_names or mod_exists_via_show(wrapped_mod)
632632
self.log.debug("Result for existence check of wrapped module %s: %s", wrapped_mod, mod_exists)
633633

634-
self.log.debug("Result for existence check of %s module: %s", mod_name, mod_exists)
634+
self.log.info("Result for existence check of %s module: %s", mod_name, mod_exists)
635635

636636
mods_exist.append(mod_exists)
637637

0 commit comments

Comments
 (0)