Missed TensorFlow World? Check out the recap. Learn more

tf.logging.log_if

tf.logging.log_if(
    level,
    msg,
    condition,
    *args
)

Defined in tensorflow/python/platform/tf_logging.py.

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