checking log for failure