From cc3070a0b383463cc4a470b89c2668471cb42e00 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Sat, 2 Jul 2022 13:09:25 -0700 Subject: [PATCH] log the reason for falling back to AXFR from IXFR at level info messages indicating the reason for a fallback to AXFR (i.e, because the requested serial number is not present in the journal, or because the size of the IXFR response would exceeed "max-ixfr-ratio") are now logged at level info instead of debug(4). (cherry picked from commit df1d81cf961b49172583e2424177b52a89caf041) --- CHANGES | 4 ++++ lib/ns/xfrout.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 0958628bc9..13d9e9fe3b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +5924. [func] When it's necessary to use AXFR to respond to an + IXFR request, a message explaining the reason + is now logged at level info. [GL #2683] + 5923. [bug] Fix inheritance for dnssec-policy when checking for inline-signing. [GL #3438] diff --git a/lib/ns/xfrout.c b/lib/ns/xfrout.c index e2d11fa269..bb3e2c4cd6 100644 --- a/lib/ns/xfrout.c +++ b/lib/ns/xfrout.c @@ -1029,7 +1029,7 @@ got_soa: } if (result == ISC_R_NOTFOUND || result == ISC_R_RANGE) { xfrout_log1(client, question_name, question_class, - ISC_LOG_DEBUG(4), + ISC_LOG_INFO, "IXFR version not in journal, " "falling back to AXFR"); mnemonic = "AXFR-style IXFR"; @@ -1044,7 +1044,7 @@ got_soa: data_stream->methods->destroy(&data_stream); data_stream = NULL; xfrout_log1(client, question_name, - question_class, ISC_LOG_DEBUG(4), + question_class, ISC_LOG_INFO, "IXFR delta size (%zu bytes) " "exceeds the maximum ratio to " "database size "