Commit 611aae3b authored by gsell's avatar gsell

modulecmd: log loaded modules to syslog

parent 0b0668d5
...@@ -526,13 +526,15 @@ subcommand_load() { ...@@ -526,13 +526,15 @@ subcommand_load() {
"${current_modulefile}" "${current_modulefile}"
fi fi
if [[ ${verbosity_lvl} != silent ]] && \ local msg=$(printf "%s %s: %s -- %s\n" \
[[ ${release} != stable ]]; then
std::info "%s %s: %s -- %s\n" \
"${CMD}" 'load' \ "${CMD}" 'load' \
"${release} module has been loaded" \ "${release} module has been loaded" \
"${m}" "${m}")
if [[ ${verbosity_lvl} != silent ]] && \
[[ ${release} != stable ]]; then
std::info "${msg}"
fi fi
logger "${msg}"
done done
# fix LOADEDMODULES # fix LOADEDMODULES
LOADEDMODULES="${_LMFILES_}" 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