Commit b692f071 authored by gsell's avatar gsell

Merge branch '80-modulecmd-log-loaded-module-to-syslog' into 'master'

Resolve "modulecmd: log loaded module to syslog"

Closes #80

See merge request !44
parents 0b0668d5 611aae3b
......@@ -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