public static void warnInvalidRecord(Logger logger, String logPrefix, DnsRecordType type, byte[] content) {
        if (logger.isWarnEnabled()) {
            final String dump = ByteBufUtil.hexDump(content);
            logger.warn("{} Skipping invalid {} record: {}",
                        logPrefix, type.name(), dump.isEmpty() ? "<empty>" : dump);
        }
    }
Logs a warning message about an invalid record.
core/src/main/java/com/linecorp/armeria/internal/client/dns/DnsUtil.java