From: Evan Hunt Date: Mon, 1 Jul 2024 20:00:04 +0000 (-0700) Subject: raise the log level of priming failures X-Git-Tag: alessio/regression/a26055f03e~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a84d54c6ff8edf4b0bd36c84fab1cae37684f7f8;p=thirdparty%2Fbind9.git raise the log level of priming failures when a priming query is complete, it's currently logged at level ISC_LOG_DEBUG(1), regardless of success or failure. we are now raising it to ISC_LOG_NOTICE in the case of failure. --- diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index ef333d50cef..5afa72f9356 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -10063,8 +10063,10 @@ prime_done(void *arg) { REQUIRE(VALID_RESOLVER(res)); + int level = (resp->result == ISC_R_SUCCESS) ? ISC_LOG_DEBUG(1) + : ISC_LOG_NOTICE; isc_log_write(dns_lctx, DNS_LOGCATEGORY_RESOLVER, - DNS_LOGMODULE_RESOLVER, ISC_LOG_DEBUG(1), + DNS_LOGMODULE_RESOLVER, level, "resolver priming query complete: %s", isc_result_totext(resp->result));