code: def should_log_payloads(level, is_fault)
        # Fault payloads log at INFO.
        return level <= Logger::INFO if is_fault
        # Success payloads log at DEBUG.
        return level <= Logger::DEBUG
      end
docs: Check whether or not to log payloads based on log level.