Change the "RPZ not ready yet" message and its log level

The "RPZ not ready yet" message is logged at debug 3 level. Use the
info level instead for better visibility.

After raising the log level, the rpz_log_fail_helper() function starts
appending " failed: " the the message. Change the log message so it
makes more sense.
This commit is contained in:
Aram Sargsyan 2025-08-27 14:35:09 +00:00 committed by Petr Špaček
parent d9b5f6c502
commit 49356ce944

View file

@ -4007,8 +4007,9 @@ rpz_rewrite(ns_client_t *client, dns_rdatatype_t qtype, isc_result_t qresult,
/* Do not pollute SERVFAIL cache */
client->inner.attributes |= NS_CLIENTATTR_NOSETFC;
rpz_log_fail(client, DNS_RPZ_DEBUG_LEVEL3, NULL,
DNS_RPZ_TYPE_QNAME, "RPZ not ready yet", result);
rpz_log_fail(client, DNS_RPZ_INFO_LEVEL, NULL,
DNS_RPZ_TYPE_QNAME, "RPZ servfail-until-ready",
DNS_R_WAIT);
st->m.policy = DNS_RPZ_POLICY_ERROR;
goto cleanup;
}