]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
raise the log level of priming failures
authorEvan Hunt <each@isc.org>
Mon, 1 Jul 2024 20:00:04 +0000 (13:00 -0700)
committerOndřej Surý <ondrej@isc.org>
Mon, 5 Aug 2024 13:31:38 +0000 (15:31 +0200)
when a priming query is complete, it's currently logged at
level ISC_LOG_INFO, regardless of success or failure. we
are now changing it to ISC_LOG_NOTICE in the case of failure
and ISC_LOG_DEBUG(1) in case of success.

(cherry picked from commit a84d54c6ff8edf4b0bd36c84fab1cae37684f7f8)

lib/dns/resolver.c

index 2bcc68efbb33d0674e3ad02835efc824c66ef0eb..70ede1d5155326e0d7215827e211da2460721669 100644 (file)
@@ -10563,8 +10563,10 @@ prime_done(isc_task_t *task, isc_event_t *event) {
        res = event->ev_arg;
        REQUIRE(VALID_RESOLVER(res));
 
+       int level = (fevent->result == ISC_R_SUCCESS) ? ISC_LOG_DEBUG(1)
+                                                     : ISC_LOG_NOTICE;
        isc_log_write(dns_lctx, DNS_LOGCATEGORY_RESOLVER,
-                     DNS_LOGMODULE_RESOLVER, ISC_LOG_INFO,
+                     DNS_LOGMODULE_RESOLVER, level,
                      "resolver priming query complete: %s",
                      isc_result_totext(fevent->result));