Modify print confirm log condition