conditional log stmt behind assert