Browse Source

tune logOutput()

master
belliash 9 years ago
parent
commit
6c92021343
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libraries/common

+ 5
- 1
libraries/common View File

@ -160,7 +160,11 @@ function logMessage() {
#-------------------------------------------------------------------------------
function logOutput() {
if isEnabled ${LOGGING}; then
echo -e "${@}" | awk '{ print " )> ", $0; }' >> ${LOGFILE}
if [ -z "${@}" ]; then
echo -e " )> (NO OUTPUT)" >> ${LOGFILE}
else
echo -e "${@}" | awk '{ print " )> ", $0; }' >> ${LOGFILE}
fi
fi
}

Loading…
Cancel
Save