tf.compat.v1.logging.log_if

Log 'msg % args' at level 'level' only if condition is fulfilled.