Commit cf06c95a authored by 智勇's avatar 智勇

增加日志报错打印

parent be89f3ad
......@@ -42,6 +42,8 @@ function ack()
exit 0
else
echo "server $ip $project not startup in ${max_wait_ack_time} seconds..."
num=`grep -n "\[ERROR\]" $log_path | head -1 |cut -d ":" -f 1`
sed -n "$num,$[$num+10]p" $log_path
exit -1
fi
done
......
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