mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 07:00:00 -04:00
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.
(cherry picked from commit 49356ce944)
This commit is contained in:
parent
cf687c0bda
commit
25e08a0cfe
1 changed files with 3 additions and 2 deletions
|
|
@ -4362,8 +4362,9 @@ rpz_rewrite(ns_client_t *client, dns_rdatatype_t qtype, isc_result_t qresult,
|
|||
/* Do not pollute SERVFAIL cache */
|
||||
client->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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue