Commit 611aae3b authored by gsell's avatar gsell

modulecmd: log loaded modules to syslog

parent 0b0668d5
......@@ -526,13 +526,15 @@ subcommand_load() {
"${current_modulefile}"
fi
if [[ ${verbosity_lvl} != silent ]] && \
[[ ${release} != stable ]]; then
std::info "%s %s: %s -- %s\n" \
local msg=$(printf "%s %s: %s -- %s\n" \
"${CMD}" 'load' \
"${release} module has been loaded" \
"${m}"
"${m}")
if [[ ${verbosity_lvl} != silent ]] && \
[[ ${release} != stable ]]; then
std::info "${msg}"
fi
logger "${msg}"
done
# fix LOADEDMODULES
LOADEDMODULES="${_LMFILES_}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment