tune logOutput()

This commit is contained in:
belliash 2012-01-07 13:56:57 +01:00
parent ed1ff4f3ad
commit 6c92021343
1 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,11 @@ function logMessage() {
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
function logOutput() { function logOutput() {
if isEnabled ${LOGGING}; then 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 fi
} }