Add log condition