fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12690 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2012-05-15 06:24:34 +00:00
parent 80748cfb7c
commit 14c5ac7474

View File

@ -20,7 +20,7 @@ OS=`uname`
if [ -z $MASTER ]; then
msg="$0: The environment variable MASTER is null, pls check.\n"
echo $msg
logger -t xcat "$msg"
logger -t xcat -p local4.err "$msg"
exit 1
fi
@ -38,7 +38,7 @@ else
if [ $SRET -ne 0 ]; then
msg="$0: The returned value is not correct, server_ip=$SERVER_IP\n"
echo $msg
logger -t xcat "$msg"
logger -t xcat -p local4.err "$msg"
exit 1
fi
fi
@ -58,13 +58,13 @@ if [ ! -z $NODE_NAME ]; then
else
msg="$0: The environment variable NODE is null, pls check.\n"
echo $msg
logger -t xcat "$msg"
logger -t xcat -p local4.err "$msg"
exit 1
fi
if [[ $RET -ne 0 ]] || [[ $NRET -ne 0 ]]; then
msg="$0: The returned value is not correct, client_ip=$client_ip, nic=$nic\n"
logger -t xcat "$msg"
logger -t xcat -p local4.info "$msg"
exit 1
fi
@ -77,7 +77,7 @@ if [ ! -z $NIC ]; then
else
msg="$0: The network interface NIC on the host $CLIENT_IP is not retrieved, pls check.\n"
echo $msg
logger -t xcat "$msg"
logger -t xcat -p local4.info "$msg"
exit 1
fi