Commit 5e5c811f by Eric Coissac

some small bug changes

parent f6605c35
......@@ -59,25 +59,25 @@ exec 3>&2
function logdebug() {
if (( LOG_LEVEL <= LOG_DEBUG_LEVEL )); then
echo `date +'%Y-%m-%d %H:%M:%S'` "[DEBUG ] $$ -- $*" 1>&3
echo `date +'%Y-%m-%d %H:%M:%S'` "[DEBUG ] $(hostname).$$ -- $*" 1>&3
fi
}
function loginfo() {
if (( LOG_LEVEL <= LOG_INFO_LEVEL )); then
echo `date +'%Y-%m-%d %H:%M:%S'` "[INFO ] $$ -- $*" 1>&3
echo `date +'%Y-%m-%d %H:%M:%S'` "[INFO ] $(hostname).$$ -- $*" 1>&3
fi
}
function logerror() {
if (( LOG_LEVEL <= LOG_ERROR_LEVEL )); then
echo `date +'%Y-%m-%d %H:%M:%S'` "[ERROR ] $$ -- $*" 1>&3
echo `date +'%Y-%m-%d %H:%M:%S'` "[ERROR ] $(hostname).$$ -- $*" 1>&3
fi
}
function logwarning() {
if (( LOG_LEVEL <= LOG_WARNING_LEVEL )); then
echo `date +'%Y-%m-%d %H:%M:%S'` "[WARNING] $$ -- $*" 1>&3
echo `date +'%Y-%m-%d %H:%M:%S'` "[WARNING] $(hostname).$$ -- $*" 1>&3
fi
}
......
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