Update check_log.sh

Added a parameter to critical return code X warning
Added perf return code